You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
Subject of the issue
Stubbing a base method, will erroneously stub a child method that overrides it when that child method is in a nested call in a block.
Your environment
Steps to reproduce
Working demo here:
https://github.com/jcavalieri/rspec_issue
Running
rspec ./program_spec.rb
shows the failing test that should succeedExpected behavior
Only the base implementation of the method
foo
should be stubbed.Actual behavior
The base implementation of
foo
is stubbed, however, the child implementation offoo
when in a nested block is also being stubbed.The text was updated successfully, but these errors were encountered: