Parent

Methods

Class/Module Index [+]

Quicksearch

RSpec::Expectations::LegacyMacherAdapter

Wraps a matcher written against one of the legacy protocols in order to present the current protocol.

@private

Public Class Methods

new(matcher) click to toggle source
# File lib/rspec/expectations/handler.rb, line 99
def initialize(matcher)
  super
  ::RSpec.warn_deprecation(          |#{matcher.class.name || matcher.inspect} implements a legacy RSpec matcher          |protocol. For the current protocol you should expose the failure messages          |via the `failure_message` and `failure_message_when_negated` methods.          |(Used from #{CallerFilter.first_non_rspec_line}).gsub(/^\s+\|/, ''), :type => "legacy_matcher")
end
wrap(matcher) click to toggle source
# File lib/rspec/expectations/handler.rb, line 109
def self.wrap(matcher)
  new(matcher) if interface_matches?(matcher)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.