class Object

Public Instance Methods

cache_messages_for_matcher(matcher, actual) click to toggle source
# File lib/rspec-matchers-matchers/matchers.rb, line 2
def cache_messages_for_matcher(matcher, actual)
  matcher.instance_variable_set('@actual', actual)
  RSpec::Matchers::Custom::MatchersHelper.get_message(matcher, :failure_message_for_should)
  RSpec::Matchers::Custom::MatchersHelper.get_message(matcher, :failure_message_for_should_not)
  RSpec::Matchers::Custom::MatchersHelper.get_message(matcher, :description)
end