New issue

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

Add the ability to temporarily turn off `verify_partial_doubles` #1102

samphippen opened this Issue Jul 5, 2016 · 0 comments


None yet
1 participant
Copy link

samphippen commented Jul 5, 2016

In rspec/rspec-rails#1076 and rspec/rspec-rails#1219 we encountered some issues with partial mocks and view specs. We should add the ability to temporarily disable verify_partial_doubles.

The implementation signature could potentially look like without_verifying_partial_doubles(&blk) such that

around do |ex|
  without_verifying_partial_doubles { }


it "does something weird with mocks" do
  without_verifying_partial_doubles do

The implementation strategy for this would simply set/reset the values in RSpec Mocks' configuration which are found here

I'm happy to mentor on this one if someone needs help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment