tests: fix various broken tests.

This commit is contained in:
evazion
2020-01-17 19:21:20 -06:00
parent 20f893161b
commit b7350b8fe0
5 changed files with 15 additions and 30 deletions

View File

@@ -178,7 +178,7 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
end
should "gracefully handle validation errors during approval" do
@req.stubs(:update).raises(AliasAndImplicationImporter::Error.new("blah"))
@req.stubs(:update!).raises(AliasAndImplicationImporter::Error.new("blah"))
assert_difference("ForumPost.count", 1) do
@req.approve!(@admin)
end