rspec / rspec/rspec-activemodel-mocks
deprecation warning
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 119
- Forks
- 31
- Avg merge
- 5h 47m
- Merged PRs (30d)
- 2
Description
Calling stub_model gives me:
Using stub from rspec-mocks' old :should syntax without explicitly enabling the syntax is deprecated. Use the new :expect syntax or explicitly enable :should instead.
If I add RSpec::Mocks.configuration.syntax = :original the method is no longer available
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the deprecation warning when calling stub_model, then compare it with the behavior after setting RSpec::Mocks.configuration.syntax = :original. Trace how this repository exposes stub_model and how rspec-mocks syntax configuration affects it; done means the intended syntax configuration no longer produces the reported warning or makes the method unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100