legendary-doc-site/apps/content/test/content/term_relationship_test.exs
2020-07-20 22:04:04 +00:00

14 lines
304 B
Elixir

defmodule Content.TermRelationshipTest do
use Content.DataCase
alias Content.{Repo, TermRelationship}
test "can save a new term relationship" do
%TermRelationship{}
|> TermRelationship.changeset(%{
object_id: 123,
term_taxonomy_id: 456,
})
|> Repo.insert!()
end
end