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

test/models/object_test.exs

defmodule Lyn.Admin.ObjectTest do
use Lyn.ModelCase
alias Lyn.Object
@valid_attrs %{cache_time: 42, full_path: "some content", is_published: true, is_show_in_menu: true, is_show_on_site_map: true, nesting: 42, object_type_id: 42, parent_id: 42, path: "some content", site_id: 42, sort_order: 42, thread_id: 42, url: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Object.changeset(%Object{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
changeset = Object.changeset(%Object{}, @invalid_attrs)
refute changeset.valid?
end
end