Class: StateMachinesRspec::Matchers::RejectStateMatcher
Instance Attribute Summary
#failure_message
Instance Method Summary
collapse
#initialize, #matches?
Instance Method Details
#description ⇒ Object
15
16
17
18
19
|
# File 'lib/matchers/states/reject_state.rb', line 15
def description
message = super
message << " on #{state_machine_scope.inspect}" if state_machine_scope
"not have #{message}"
end
|
#matches_states?(states) ⇒ Boolean
11
12
13
|
# File 'lib/matchers/states/reject_state.rb', line 11
def matches_states?(states)
no_defined_states?
end
|