Class: RubyEventStore::RSpec::MatchEvents
- Inherits:
-
Object
- Object
- RubyEventStore::RSpec::MatchEvents
- Defined in:
- lib/ruby_event_store/rspec/match_events.rb
Instance Method Summary collapse
Instance Method Details
#call(expected, events) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ruby_event_store/rspec/match_events.rb', line 6 def call(expected, events) if match_events?(expected) matcher(expected).matches?(events) && matches_count?(expected, events) else !events.empty? end end |