class RSpec::Rails::Matchers::BaseMatcher
def match_unless_raises(*exceptions)
- Api: - private
def match_unless_raises(*exceptions) exceptions.unshift Exception if exceptions.empty? begin yield true rescue *exceptions => @rescued_exception false end end