We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3edf25 commit dffcdf7Copy full SHA for dffcdf7
1 file changed
lib/mspec/matchers/base.rb
@@ -36,7 +36,7 @@ def equal?(expected)
36
end
37
38
39
- def raise(exception = Exception, message = nil, options = nil, &block)
+ def raise(exception = ::Exception, message = nil, options = nil, &block)
40
matcher = ::RaiseErrorMatcher.new(exception, message, options, &block)
41
unless matcher.matches? @actual
42
expected, actual = matcher.failure_message
@@ -78,7 +78,7 @@ def equal?(expected)
78
79
80
81
82
83
if matcher.matches? @actual
84
expected, actual = matcher.negative_failure_message
0 commit comments