1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Update docs

This commit is contained in:
Cedric ZH 2016-11-27 22:13:49 +08:00 committed by Anil Kumar Maurya
parent 0800c53363
commit d40f08271f

View file

@ -1193,6 +1193,9 @@ expect(multiple).to allow_event(:start).on(:move)
expect(multiple).to_not allow_event(:stop).on(:move)
expect(multiple).to allow_transition_to(:processing).on(:move)
expect(multiple).to_not allow_transition_to(:sleeping).on(:move)
# allow_event also accepts arguments
expect(job).to allow_event(:run).with(:defragmentation)
```
#### Minitest