Jon Rowe

Results 306 comments of Jon Rowe

The advantage of using a spy is to set the method expectations after the methods have actually been received, e.g. it enables the `have_received` matcher, if you don't need that...

Closing due to inactivity during the monorepo migration, but if someone wanted to revisit this they'd be welcome.

Given what you've described, it's more likely the expectation is being verified before your method call is "complete".

The moment `component.search('query', callback)` returns to RSpec, the expectation will be verified, the number of calls that RSpec has received by then will be used. You can fix this by...

That doesn't apply here, RSpec can't see beyond it's own thread AFAIK

Closing during the monorepo migration as there is an issue migrated from rspec-core.

I'm wary of making `rspec-support` an uber gem that basically morphs into an `rspec` not split in three. I'm not against this specific change, just noting my wariness.

I'd support option 4 in the long term. I'm not sure I like this myself but I'd like to suggest: 5) Create an `rspec-matchers` gem that contains the matchers for...