Method: RSpec::Matchers#match_array
- Defined in:
- lib/rspec/matchers.rb
#match_array(items) ⇒ Object Also known as: an_array_matching
An alternate form of contain_exactly
that accepts
the expected contents as a single array arg rather
than splatted out as individual items.
715 716 717 |
# File 'lib/rspec/matchers.rb', line 715 def match_array(items) contain_exactly(*items) end |