From 73bd146816322f90cc52b78c6a377f86d46dd145 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 25 May 2017 23:38:17 +0300 Subject: [PATCH] Disable partial double verification in views #480 --- spec/views/mailers/shared/registrant/registrant_shared.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/views/mailers/shared/registrant/registrant_shared.rb b/spec/views/mailers/shared/registrant/registrant_shared.rb index dd27c8e95..ff90ceb7e 100644 --- a/spec/views/mailers/shared/registrant/registrant_shared.rb +++ b/spec/views/mailers/shared/registrant/registrant_shared.rb @@ -43,7 +43,9 @@ RSpec.shared_examples 'domain mailer registrant info' do |template_path| context 'when address processing is enabled' do before :example do - allow(view).to receive(:address_processing).and_return(true) + without_partial_double_verification do + allow(view).to receive(:address_processing).and_return(true) + end end address_attributes.each do |attr_name| @@ -63,7 +65,9 @@ RSpec.shared_examples 'domain mailer registrant info' do |template_path| context 'when address processing is disabled' do before :example do - allow(view).to receive(:address_processing).and_return(false) + without_partial_double_verification do + allow(view).to receive(:address_processing).and_return(false) + end end address_attributes.each do |attr_name|