class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher

@private

Public Class Methods

new(expected) click to toggle source
# File lib/rspec/mocks/argument_matchers.rb, line 204
def initialize(expected)
  @expected = expected
end

Public Instance Methods

===(actual) click to toggle source
# File lib/rspec/mocks/argument_matchers.rb, line 208
def ===(actual)
  Set.new(actual).superset?(Set.new(@expected))
end
description() click to toggle source
# File lib/rspec/mocks/argument_matchers.rb, line 212
def description
  "array_including(#{@expected.join(", ")})"
end