module RSpec::Maybes::MaybeHelper
@private
Public Class Methods
handle_failure(matcher, message, failure_message_method)
click to toggle source
# File lib/rspec/maybes/handlers.rb, line 7 def self.handle_failure(matcher, message, failure_message_method) message = message.call if message.respond_to?(:call) message ||= matcher.__send__(failure_message_method) ::RSpec::Maybes.fail_with message, failure_message_method end