diff --git a/README.md b/README.md index 361cebf..dd9eeb8 100644 --- a/README.md +++ b/README.md @@ -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