Disable partial double verification in views

#480
This commit is contained in:
Artur Beljajev 2017-05-25 23:38:17 +03:00
parent 9486138e5e
commit 73bd146816

View file

@ -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|