Parent

Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::All

@api private Provides the implementation for `all`. Not intended to be instantiated directly.

Attributes

failed_objects[R]

@private

matcher[R]

@private

Public Class Methods

new(matcher) click to toggle source
# File lib/rspec/matchers/built_in/all.rb, line 11
def initialize(matcher)
  @matcher = matcher
  @failed_objects = {}
end

Public Instance Methods

description() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/all.rb, line 33
def description
  improve_hash_formatting "all #{description_of matcher}"
end
does_not_match?(_actual) click to toggle source

@private

# File lib/rspec/matchers/built_in/all.rb, line 17
def does_not_match?(_actual)
  raise NotImplementedError, '`expect().not_to all( matcher )` is not supported.'
end
failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/all.rb, line 23
def failure_message
  all_messages = [improve_hash_formatting(super)]
  failed_objects.each do |index, matcher_failure_message|
    all_messages << failure_message_for_item(index, matcher_failure_message)
  end
  all_messages.join("\n\n")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.