-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow_any_instance_of(Object).to receive(:sleep) failure #123
Comments
When we initially built the collector, we didn't consider use cases where We may look to support this better in the future but you could try stubbing the class under test like this:
Another customer encountered this same problem and this resolved their issue. Thanks! |
GitLab had a similar issue and their solution is to use a custom matcher, maybe this may work for you? |
@rdh 👆️ |
Just a follow-up. The failures were easily resolved with...
Would still be ideal if this gem "just worked" as a drop-in to legacy repos, but pretty minor. |
After adding
buildkite-test_collector
to our Gemfile, specs that stub sleep in this way...... have begun failing with this error message...
... under
rspec (3.10.0)
andrspec-rails (5.0.0)
The text was updated successfully, but these errors were encountered: