Packages

This is a CMS written in Elixir. Aims to be the great open-source ecommerce and/or startup solution for those who are searching for a performance and stability on top of modern technologies like React and Elixir.

Current section

Files

Jump to
lyn test models role_test.exs
Raw

test/models/role_test.exs

defmodule Lyn.RoleTest do
use Lyn.ModelCase
alias Lyn.Role
@valid_attrs %{admin: true, name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Role.changeset(%Role{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
changeset = Role.changeset(%Role{}, @invalid_attrs)
refute changeset.valid?
end
end