Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Slight wording tweak to feature text.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Sep 4, 2024
1 parent 485a266 commit 8f0d997
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/configuring_responses/mixed_responses.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Feature: Mixed responses
callables to have different behavior for consecutive calls. The final callable will continue to be
called if the message is received additional times.

Note: The invoked callable will be supplied the calls arguments, including any blocks (so `yield`
et al will be supported). It is recommended to use a `lambda` or similar with the same arity
as your method but you can use a `proc` if you do not care about arity(e.g. when raising).
Note: The invoked callable will be given the same arguments as the original call, which includes any blocks
(meaning for example `yield` will be supported). It is recommended to use a `lambda` or similar with the same
arity as your method but you can use a `proc` if you do not care about arity (e.g. when raising).

Scenario: Mixed responses
Given a file named "raises_and_then_returns.rb" with:
Expand Down

0 comments on commit 8f0d997

Please sign in to comment.