Skip to content

Commit

Permalink
update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-coggin committed Nov 27, 2023
1 parent 30d50e6 commit 28f80d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
# edit registration/account
add edit_email_user_path
add edit_password_user_path
add edit_registration_terms_and_conditions_path
add edit_registration_name_path
add edit_registration_setting_type_path
add edit_registration_setting_type_other_path
Expand Down
4 changes: 2 additions & 2 deletions spec/requests/authentication_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
RSpec.describe 'Authentication', type: :request do
describe 'viewing authenticate_user! controller action' do
let(:action_path) { edit_registration_name_path }
let(:action_path) { edit_registration_terms_and_conditions_path }

context 'with User not signed in' do
it 'redirects to sign in page' do
Expand Down Expand Up @@ -89,7 +89,7 @@

it 'redirects to finish registration' do
get action_path
expect(response).to redirect_to(edit_registration_name_path)
expect(response).to redirect_to(edit_registration_terms_and_conditions_path)
end

it 'displays message to complete registration' do
Expand Down
2 changes: 1 addition & 1 deletion spec/system/sign_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

context 'and enters valid credentials' do
it 'signs in successfully' do
expect(page).to have_text('About you') # extra registration
expect(page).to have_text('Agree to our terms and conditions') # extra registration
end
end

Expand Down

0 comments on commit 28f80d5

Please sign in to comment.