After adding buildkite-test_collector to our Gemfile, specs that stub sleep in this way...
allow_any_instance_of(Object).to receive(:sleep)
... have begun failing with this error message...
Failure/Error: allow_any_instance_of(Object).to receive(:sleep)
Using `any_instance` to stub a method (sleep) that has been defined on a prepended module (Buildkite::TestCollector::Object::CustomObjectSleep) is not supported.
... under rspec (3.10.0) and rspec-rails (5.0.0)