# File lib/spec/matchers/wrap_expectation.rb, line 45 def wrap_expectation(matcher, &block) begin block.call(matcher) return true rescue Exception => e matcher.failure_message = e.message return false end end