# File lib/facon/error_generator.rb, line 22 def raise_block_failed_error(method, exception_message) message = "#{target_name} received :#{method} but passed block failed with: #{exception_message}" raise(Facon::MockExpectationError, message) end