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