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
- Bug: Classes don't follow the double docs WRT #dup
- `stack level too deep` when stubbing :is_a? with allow_any_instance_of
- hash_including deviates from a_hash_including
- stub_const does not restore Object.const_source_location after reset
- Mocking methods changes `Method#parameters`.
- stub_const doesn't work with constant inside `class << self` block
- Version 3.11.2 issue with kwargs
- Message expectation with block arguments for keyword argument method behaves differently
- Verifying doubles do not differentiate between a Hash and keyword args in Ruby 3
- Argument matcher prevents diffability of custom matcher
- Docs
- Subscribe to help with docs for this repo and come back later