method
matches?
1.3.0 -
Show latest stable
- Class:
Spec::Matchers::MatchArray
matches?(actual)public
No documentation available.
# File lib/spec/matchers/match_array.rb, line 11
def matches?(actual)
@actual = actual
@extra_items = difference_between_arrays(@actual, @expected)
@missing_items = difference_between_arrays(@expected, @actual)
@extra_items.empty? & @missing_items.empty?
end