mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Clarify on_event
can accept *multiple* events
It was clear it could have accept arguments as the previous examples already did cover the case. This chagne clarifies what the examples is covering.
This commit is contained in:
parent
cd25a1eeae
commit
81ab368d60
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ expect(job).to allow_event :run
|
|||
expect(job).to_not allow_event :clean
|
||||
expect(job).to allow_transition_to(:running)
|
||||
expect(job).to_not allow_transition_to(:cleaning)
|
||||
# on_event also accept arguments
|
||||
# on_event also accept multiple arguments
|
||||
expect(job).to transition_from(:sleeping).to(:running).on_event(:run, :defragmentation)
|
||||
|
||||
# classes with multiple state machine
|
||||
|
|
Loading…
Reference in a new issue