Class: Ramcrest::IncludesExactly::Matcher
- Inherits:
-
Enumerable::BaseEnumerableMatcher
- Object
- Enumerable::BaseEnumerableMatcher
- Ramcrest::IncludesExactly::Matcher
- Defined in:
- lib/ramcrest/includes_exactly.rb
Instance Method Summary collapse
-
#initialize(expected) ⇒ Matcher
constructor
A new instance of Matcher.
Methods inherited from Enumerable::BaseEnumerableMatcher
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 |