-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid warnings for calls to ordered on RSpec stubs
It's only possible to constrain the order in which calls are made when using `expect`; not when using `allow`. Indeed you need at least two calls to `expect` with the `ordered` qualifier to make this work. The following warning was appearing in the spec output multiple times: WARNING: `allow(...).to receive(..).ordered` is not supported and will have no effect, use `and_return(*ordered_values)` instead.. Thus the calls to `ordered` were not having any effect and so I have removed them. See the documentation [1] for more info. [1]: https://relishapp.com/rspec/rspec-mocks/v/3-8/docs/setting-constraints/message-order
- Loading branch information
1 parent
dc1e798
commit 6e1b143
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters