From d32882e1ee8dd65b4af4f8ead274981a55a6e932 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 31 Dec 2018 19:08:15 -0600 Subject: [PATCH] aliases/implications: fix controller tests. --- test/functional/tag_aliases_controller_test.rb | 5 +++-- test/functional/tag_implications_controller_test.rb | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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