rspec-mocks
https://github.com/rspec/rspec-mocks
Ruby
RSpec's 'test double' framework, with support for stubbing and mocking
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
10 Subscribers
Add a CodeTriage badge to rspec-mocks
Help out
- Issues
- Negative message expectations interact weirdly with failure aggregation
- class spies fail to verify when chaining an instance method onto a class method that returns an instance
- Get test coverage of all code that's not version-specific up to 100%
- Spies do not support ordering with interleaved calls
- mock_of? to check types on doubles (to avoid unnecessary coercions)
- Multi message expectation should show each allowed message
- More thread safety fixes needed
- Stubbing private kernel methods like `rand` or `sleep` on a partial double that subclasses `DelegateClass` issues warning
- Mock uses inspect instead of description on matcher if should_receive count failes
- Reconcile duplicatated (but slightly different) matchers between rspec-mocks and rspec-expectations
- Docs
- Subscribe to help with docs for this repo and come back later