Use without_partial_double_verification instead verify_partial_doubles = false

This commit is contained in:
Artur Beljajev 2017-05-23 15:36:28 +03:00
parent 6cda021d71
commit 6cacf59467
8 changed files with 35 additions and 22 deletions

View file

@ -4,7 +4,9 @@ RSpec.shared_examples 'domain mailer registrant info' do
let(:registrant) { instance_spy(RegistrantPresenter) }
before :example do
allow(view).to receive(:registrant).and_return(registrant)
without_partial_double_verification do
allow(view).to receive(:registrant).and_return(registrant)
end
end
attributes = %i(

View file

@ -4,7 +4,9 @@ RSpec.shared_examples 'domain mailer registrar info' do
let(:registrar) { instance_spy(RegistrarPresenter) }
before :example do
allow(view).to receive(:registrar).and_return(registrar)
without_partial_double_verification do
allow(view).to receive(:registrar).and_return(registrar)
end
end
attributes = %i(