diff --git a/lib/rspec/matchers/built_in/base_matcher.rb b/lib/rspec/matchers/built_in/base_matcher.rb index 1cb441022..583c1374d 100644 --- a/lib/rspec/matchers/built_in/base_matcher.rb +++ b/lib/rspec/matchers/built_in/base_matcher.rb @@ -28,10 +28,10 @@ def match_unless_raises(*exceptions) exceptions.unshift Exception if exceptions.empty? begin yield + true rescue *exceptions => @rescued_exception - return false + false end - true end def failure_message_for_should