Skip to content

Commit

Permalink
update sign_in system spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-coggin committed Dec 5, 2023
1 parent b915b6a commit d1b61eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/system/sign_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1b61eb

Please sign in to comment.