tests: fix broken tests.

This commit is contained in:
evazion
2022-04-18 00:31:31 -05:00
parent cd22c8eb1a
commit 6c5dd5ffed
3 changed files with 5 additions and 3 deletions

View File

@@ -571,7 +571,9 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
end
should "not work for tags without a wiki page" do
create(:tag, name: "no_wiki")
@bur = build(:bulk_update_request, script: "deprecate no_wiki")
assert_equal(false, @bur.valid?)
assert_equal(["Can't deprecate no_wiki (tag must have a wiki page)"], @bur.errors[:base])
end