# File lib/rspec/matchers/built_in/base_matcher.rb, line 27 def match_unless_raises(*exceptions) exceptions.unshift Exception if exceptions.empty? begin yield rescue *exceptions => @rescued_exception return false end true end