Class: RubyEventStore::RSpec::CrudeFailureMessageFormatter::Publish
- Inherits:
-
Object
- Object
- RubyEventStore::RSpec::CrudeFailureMessageFormatter::Publish
- Defined in:
- lib/ruby_event_store/rspec/crude_failure_message_formatter.rb
Instance Method Summary collapse
- #failure_message(expected, events, stream) ⇒ Object
- #failure_message_when_negated(expected, events, stream) ⇒ Object
Instance Method Details
#failure_message(expected, events, stream) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ruby_event_store/rspec/crude_failure_message_formatter.rb', line 29 def (expected, events, stream) if !expected.empty? " expected block to have published:\n\n \#{expected.events}\n\n \#{\"in stream \#{stream} \" if stream}but published:\n\n \#{events}\n EOS\n else\n \"expected block to have published any events\"\n end\nend\n" |
#failure_message_when_negated(expected, events, stream) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/ruby_event_store/rspec/crude_failure_message_formatter.rb', line 45 def (expected, events, stream) if !expected.empty? " expected block not to have published:\n\n \#{expected.events}\n\n \#{\"in stream \#{stream} \" if stream}but published:\n\n \#{events}\n EOS\n else\n \"expected block not to have published any events\"\n end\nend\n" |