From d1b61eb89668ea2885cea826354b7a7a328e8417 Mon Sep 17 00:00:00 2001 From: "jack.coggin" Date: Tue, 5 Dec 2023 09:15:05 +0000 Subject: [PATCH] update sign_in system spec --- spec/system/sign_in_spec.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/system/sign_in_spec.rb b/spec/system/sign_in_spec.rb index 9480f0168..b955ce97a 100644 --- a/spec/system/sign_in_spec.rb +++ b/spec/system/sign_in_spec.rb @@ -5,6 +5,7 @@ let(:password) { 'Str0ngPa$$w0rd' } before do + allow(Rails.application).to receive(:gov_one_login?).and_return(true) visit '/users/sign-in' fill_in 'Email address', with: email_address fill_in 'Password', with: password @@ -43,10 +44,6 @@ context 'when user is confirmed' do let(:user) { create :user, :confirmed } - before do - allow(Rails.application).to receive(:gov_one_login?).and_return(true) - end - context 'and enters valid credentials' do it 'signs in successfully' do expect(page).to have_text('Agree to our terms and conditions') # extra registration