class RSpec::Mocks::ArgumentMatchers::ArrayExcludingMatcher
@private
def ===(actual)
def ===(actual) actual = actual.uniq return false unless (actual & @unexpected).empty? actual.none? do |actual_element| @unexpected.any? do |unexpected_element| RSpec::Support::FuzzyMatcher.values_match?(unexpected_element, actual_element) end end rescue NoMethodError false end
def description
def description "array_excluding(#{formatted_unexpected_values})" end
def formatted_unexpected_values
def formatted_unexpected_values @unexpected.map do |x| RSpec::Support.rspec_description_for_object(x) end.join(", ") end
def initialize(unexpected)
def initialize(unexpected) @unexpected = unexpected.uniq end