Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Compound

@api private Base class for `and` and `or` compound matchers.

Attributes

matcher_1[R]

@private

matcher_2[R]

@private

Public Class Methods

new(matcher_1, matcher_2) click to toggle source
# File lib/rspec/matchers/built_in/compound.rb, line 10
def initialize(matcher_1, matcher_2)
  @matcher_1 = matcher_1
  @matcher_2 = matcher_2
end

Public Instance Methods

description() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/compound.rb, line 23
def description
  singleline_message(matcher_1.description, matcher_2.description)
end
does_not_match?(_actual) click to toggle source

@private

# File lib/rspec/matchers/built_in/compound.rb, line 16
def does_not_match?(_actual)
  raise NotImplementedError, "`expect(...).not_to "              "matcher.#{conjunction} matcher` is not supported"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.