diff --git a/test/functional/tag_aliases_controller_test.rb b/test/functional/tag_aliases_controller_test.rb index 76360d09d..b6852fc1a 100644 --- a/test/functional/tag_aliases_controller_test.rb +++ b/test/functional/tag_aliases_controller_test.rb @@ -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 diff --git a/test/functional/tag_implications_controller_test.rb b/test/functional/tag_implications_controller_test.rb index 1d43a5b44..60e748594 100644 --- a/test/functional/tag_implications_controller_test.rb +++ b/test/functional/tag_implications_controller_test.rb @@ -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