aliases/implications: fix controller tests.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user