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 domain_test.exs
Raw

test/models/domain_test.exs

defmodule Lyn.DomainTest do
use Lyn.ModelCase
alias Lyn.Domain
@valid_attrs %{name: "some content", site_id: 42, sort_order: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Domain.changeset(%Domain{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
changeset = Domain.changeset(%Domain{}, @invalid_attrs)
refute changeset.valid?
end
end