Module: Ramcrest::Includes

Defined in:
lib/ramcrest/includes.rb

Defined Under Namespace

Classes: Matcher

Class Method Summary collapse

Class Method Details

.includes(*expected) ⇒ Object



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

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