From 81ab368d601a698ab70a5648d0aec1e06dfdbcfa Mon Sep 17 00:00:00 2001 From: J Scotti Date: Fri, 25 Jan 2019 12:04:17 +0100 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49875cf..7105623 100644 --- a/README.md +++ b/README.md @@ -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