module RubyEventStore::RSpec::Matchers
Public Instance Methods
apply(*expected)
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 57 def apply(*expected) Apply.new(*expected, failure_message_formatter: RSpec.default_formatter.apply(differ)) end
be_an_event(expected)
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 34 def be_an_event(expected) BeEvent.new(expected, differ: differ, formatter: formatter) end
have_applied(*expected)
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 45 def have_applied(*expected) HaveApplied.new(*expected, phraser: phraser, failure_message_formatter: RSpec.default_formatter.have_applied(differ)) end
have_published(*expected)
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 41 def have_published(*expected) HavePublished.new(*expected, phraser: phraser, failure_message_formatter: RSpec.default_formatter.have_published(differ)) end
have_subscribed_to_events(*expected)
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 49 def have_subscribed_to_events(*expected) HaveSubscribedToEvents.new(*expected, differ: differ, phraser: phraser) end
publish(*expected)
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 53 def publish(*expected) Publish.new(*expected, failure_message_formatter: RSpec.default_formatter.publish(differ)) end
Private Instance Methods
differ()
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 67 def differ ::RSpec::Expectations.differ end
formatter()
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 63 def formatter ::RSpec::Support::ObjectFormatter.public_method(:format) end
phraser()
click to toggle source
# File lib/ruby_event_store/rspec/matchers.rb, line 71 def phraser ListPhraser end