From 1c9fd7c632f87d0cdbe0e7958018dd38b9b9f217 Mon Sep 17 00:00:00 2001 From: "jack.coggin" Date: Fri, 1 Dec 2023 16:05:42 +0000 Subject: [PATCH] update sign_in_spec --- spec/system/sign_in_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/system/sign_in_spec.rb b/spec/system/sign_in_spec.rb index 3cd4eec9e..9480f0168 100644 --- a/spec/system/sign_in_spec.rb +++ b/spec/system/sign_in_spec.rb @@ -43,6 +43,10 @@ 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