You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The negated form has the opposite problem, and the exception should not be specified, as another exception may appear instead, the example will pass, and the code that is raising the exception in question won't even be run.
The text was updated successfully, but these errors were encountered:
Taken from Effective Testing with RSpec book.
There's a matching
RSpec/UnspecifiedException
cop in RuboCop-RSpec.Example problem with it.
The negated form has the opposite problem, and the exception should not be specified, as another exception may appear instead, the example will pass, and the code that is raising the exception in question won't even be run.
The text was updated successfully, but these errors were encountered: