From dafaffcd7391cf96908d4ba8dce318b7d3d9fc48 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 18 Nov 2017 22:14:43 +1300 Subject: [PATCH] Path remains same after sign out for our test cases --- spec/features/signout_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/signout_spec.rb b/spec/features/signout_spec.rb index 107795cc1..a6402df2c 100644 --- a/spec/features/signout_spec.rb +++ b/spec/features/signout_spec.rb @@ -22,8 +22,7 @@ feature "signout" do fill_in 'Password', with: member.password click_button 'Sign in' expect(page).to have_http_status(200) - # path has params removed after signin - expect(current_path).to eq path.split('?')[0] + expect(current_path).to eq path click_link 'Sign out' expect(page).to have_http_status(200) expect(current_path).to eq new_member_session_path