diff options
Diffstat (limited to 'spec/views/devise/shared/_signup_box.html.haml_spec.rb')
-rw-r--r-- | spec/views/devise/shared/_signup_box.html.haml_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/views/devise/shared/_signup_box.html.haml_spec.rb b/spec/views/devise/shared/_signup_box.html.haml_spec.rb index ee9ccbf6ff5..377e29e18e7 100644 --- a/spec/views/devise/shared/_signup_box.html.haml_spec.rb +++ b/spec/views/devise/shared/_signup_box.html.haml_spec.rb @@ -20,6 +20,7 @@ RSpec.describe 'devise/shared/_signup_box' do before do stub_devise + allow(view).to receive(:arkose_labs_enabled?).and_return(false) allow(view).to receive(:show_omniauth_providers).and_return(false) allow(view).to receive(:url).and_return('_url_') allow(view).to receive(:terms_path).and_return(terms_path) @@ -29,10 +30,12 @@ RSpec.describe 'devise/shared/_signup_box' do end def text(translation) - format(translation, - button_text: button_text, - link_start: "<a href='#{terms_path}' target='_blank' rel='noreferrer noopener'>", - link_end: '</a>') + format( + translation, + button_text: button_text, + link_start: "<a href='#{terms_path}' target='_blank' rel='noreferrer noopener'>", + link_end: '</a>' + ) end context 'when terms are enforced' do |