Fix broken tests.

This commit is contained in:
evazion
2021-08-28 03:48:08 -05:00
parent bb7f24d279
commit a3587c30b2
2 changed files with 9 additions and 3 deletions

View File

@@ -321,12 +321,18 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
context "the nuke command" do
should "remove tags" do
@post = create(:post, tag_string: "foo bar")
@bur1 = create_bur!("imply foo -> bar", @admin)
@bur2 = create_bur!("nuke bar", @admin)
create_bur!("nuke bar", @admin)
assert_equal("foo", @post.reload.tag_string)
end
should "remove implications" do
@ti = create(:tag_implication, antecedent_name: "foo", consequent_name: "bar")
create_bur!("nuke bar", @admin)
assert_equal("deleted", @ti.reload.status)
end
should "remove pools" do
@pool = create(:pool)
@post = create(:post, tag_string: "bar pool:#{@pool.id}")