We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Working demo here: https://github.com/jcavalieri/rspec_issue
Running rspec ./program_spec.rb shows the failing test that should succeed
rspec ./program_spec.rb
Only the base implementation of the method foo should be stubbed.
foo
The base implementation of foo is stubbed, however, the child implementation of foo when in a nested block is also being stubbed.
The text was updated successfully, but these errors were encountered:
Closing as this isn't an rspec-core issue. Will reopen on rspec-mocks.
Sorry, something went wrong.
No branches or pull requests
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: