Method: RSpec::Mocks::ArgumentMatchers#array_including
- Defined in:
- lib/rspec/mocks/argument_matchers.rb
#array_including(*args) ⇒ Object
Matches an array that includes the specified items at least once. Ignores duplicates and additional values
90 91 92 93 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 90 def array_including(*args) actually_an_array = Array === args.first && args.count == 1 ? args.first : args ArrayIncludingMatcher.new(actually_an_array) end |