harden tag changesets

This commit is contained in:
2022-07-04 21:06:35 -04:00
parent 36f56528ee
commit ee6266be3f
19 changed files with 70 additions and 62 deletions

View File

@ -68,9 +68,5 @@ defmodule Cannery.TagsTest do
assert {:ok, %Tag{}} = Tags.delete_tag(tag, current_user)
assert_raise Ecto.NoResultsError, fn -> Tags.get_tag!(tag.id, current_user) end
end
test "change_tag/1 returns a tag changeset", %{tag: tag} do
assert %Changeset{} = Tags.change_tag(tag)
end
end
end