Skip to content

Commit dffcdf7

Browse files
committed
Fix constant reference
1 parent d3edf25 commit dffcdf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/mspec/matchers/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def equal?(expected)
3636
end
3737
end
3838

39-
def raise(exception = Exception, message = nil, options = nil, &block)
39+
def raise(exception = ::Exception, message = nil, options = nil, &block)
4040
matcher = ::RaiseErrorMatcher.new(exception, message, options, &block)
4141
unless matcher.matches? @actual
4242
expected, actual = matcher.failure_message
@@ -78,7 +78,7 @@ def equal?(expected)
7878
end
7979
end
8080

81-
def raise(exception = Exception, message = nil, options = nil, &block)
81+
def raise(exception = ::Exception, message = nil, options = nil, &block)
8282
matcher = ::RaiseErrorMatcher.new(exception, message, options, &block)
8383
if matcher.matches? @actual
8484
expected, actual = matcher.negative_failure_message

0 commit comments

Comments
 (0)