Top Level Namespace

Defined Under Namespace

Modules: RSpec, Rspec

Instance Method Summary collapse

Instance Method Details

#cache_messages_for_matcher(matcher, actual) ⇒ Object



2
3
4
5
6
7
# 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