Fix Rspec warning regarding specific error class (#11787)

This commit is contained in:
Jacob Herrington 2020-12-07 18:28:42 -06:00 committed by GitHub
parent 19a048ecec
commit b7eec54dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,8 @@ RSpec.describe AssignTagModerator, type: :labor do
end
# Regression test for https://github.com/forem/forem/pull/11047
it "doesn't raise a NoMethodError error" do
expect { add_tag_moderators }.not_to raise_error(NoMethodError)
it "doesn't raise an error" do
expect { add_tag_moderators }.not_to raise_error
end
end