Class: RubyEventStore::RSpec::BeEvent::KindMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_event_store/rspec/be_event.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected) ⇒ KindMatcher

Returns a new instance of KindMatcher.


7
8
9
# File 'lib/ruby_event_store/rspec/be_event.rb', line 7

def initialize(expected)
  @expected = expected
end

Instance Method Details

#matches?(actual) ⇒ Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/ruby_event_store/rspec/be_event.rb', line 11

def matches?(actual)
  @expected === actual
end