1
0
Fork 0
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:
J Scotti 2019-01-25 12:04:17 +01:00 committed by Anil Kumar Maurya
parent cd25a1eeae
commit 81ab368d60

View file

@ -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