mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Update docs
This commit is contained in:
parent
0800c53363
commit
d40f08271f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue