Module: Ramcrest::IncludesInAnyOrderExactly

Defined in:
lib/ramcrest/includes_in_any_order_exactly.rb

Defined Under Namespace

Classes: Matcher

Class Method Summary collapse

Class Method Details

.includes_in_any_order_exactly(*expected) ⇒ Object



7
8
9
10
# File 'lib/ramcrest/includes_in_any_order_exactly.rb', line 7

def includes_in_any_order_exactly(*expected)
  expected_matchers = expected.collect(&Ramcrest::EqualTo.method(:to_matcher))
  Matcher.new(expected_matchers)
end