Class: StateMachinesRspec::Matchers::RejectEventMatcher
Instance Attribute Summary
#failure_message
Instance Method Summary
collapse
#initialize, #matches?
Instance Method Details
#description ⇒ Object
15
16
17
18
19
|
# File 'lib/matchers/events/reject_event.rb', line 15
def description
message = super
message << " on #{state_machine_scope.inspect}" if state_machine_scope
"reject #{message}"
end
|
#matches_events?(events) ⇒ Boolean
11
12
13
|
# File 'lib/matchers/events/reject_event.rb', line 11
def matches_events?(events)
!valid_events?
end
|