aliases/implications: fix controller tests.

This commit is contained in:
evazion
2018-12-31 19:08:15 -06:00
parent 0ab2dfc5d2
commit d32882e1ee
2 changed files with 6 additions and 4 deletions

View File

@@ -87,9 +87,10 @@ class TagAliasesControllerTest < ActionDispatch::IntegrationTest
end
end
should "destroy a tag_alias" do
assert_difference("TagAlias.count", -1) do
should "mark the alias as deleted" do
assert_difference("TagAlias.count", 0) do
delete_auth tag_alias_path(@tag_alias), @user
assert_equal("deleted", @tag_alias.reload.status)
end
end
end

View File

@@ -84,9 +84,10 @@ class TagImplicationsControllerTest < ActionDispatch::IntegrationTest
end
end
should "destroy a tag_implication" do
assert_difference("TagImplication.count", -1) do
should "mark the implication as deleted" do
assert_difference("TagImplication.count", 0) do
delete_auth tag_implication_path(@tag_implication), @user
assert_equal("deleted", @tag_implication.reload.status)
end
end
end