From b375b1e8ef70378d6c707f0cf1a54f14abece761 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Wed, 1 Dec 2021 16:46:09 +0000 Subject: [PATCH] Update tests to allow dashes in URLs for user routes --- spec/features/user_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/user_spec.rb b/spec/features/user_spec.rb index e0ac1f1eb..45bf33cb9 100644 --- a/spec/features/user_spec.rb +++ b/spec/features/user_spec.rb @@ -4,7 +4,7 @@ RSpec.describe "User Features" do context "A user navigating to case logs" do it " is required to log in" do visit("/case-logs") - expect(page).to have_current_path("/users/sign_in") + expect(page).to have_current_path("/users/sign-in") end it "does not see the default devise error message" do @@ -150,7 +150,7 @@ RSpec.describe "User Features" do end it "personal details page is present and accessible" do - visit("/users/account/personal_details") + visit("/users/account/personal-details") expect(page).to have_content("Change your personal details") end