Class: Ramcrest::IncludesExactly::Matcher

Inherits:
Enumerable::BaseEnumerableMatcher show all
Defined in:
lib/ramcrest/includes_exactly.rb

Instance Method Summary collapse

Methods inherited from Enumerable::BaseEnumerableMatcher

#description, #matches?

Methods included from Matcher

#do_match, #matches?, #mismatch, #success

Constructor Details

#initialize(expected) ⇒ Matcher

Returns a new instance of Matcher.



13
14
15
16
17
# File 'lib/ramcrest/includes_exactly.rb', line 13

def initialize(expected)
  super("including exactly",
        expected,
        Ramcrest::EqualTo.equal_to(expected.size))
end