diff options
Diffstat (limited to 'spec/features/password_reset_spec.rb')
-rw-r--r-- | spec/features/password_reset_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/password_reset_spec.rb b/spec/features/password_reset_spec.rb index 322ccc6a0c0..a4e167a3e75 100644 --- a/spec/features/password_reset_spec.rb +++ b/spec/features/password_reset_spec.rb @@ -9,7 +9,7 @@ RSpec.describe 'Password reset' do forgot_password(user) expect(page).to have_content(I18n.t('devise.passwords.send_paranoid_instructions')) - expect(current_path).to eq new_user_session_path + expect(page).to have_current_path new_user_session_path, ignore_query: true expect(user.recently_sent_password_reset?).to be_truthy end @@ -20,7 +20,7 @@ RSpec.describe 'Password reset' do expect { forgot_password(user) }.to change { user.reset_password_sent_at } expect(page).to have_content(I18n.t('devise.passwords.send_paranoid_instructions')) - expect(current_path).to eq new_user_session_path + expect(page).to have_current_path new_user_session_path, ignore_query: true end it 'throttles multiple resets in a short timespan' do @@ -31,7 +31,7 @@ RSpec.describe 'Password reset' do expect { forgot_password(user) }.not_to change { user.reset_password_sent_at } expect(page).to have_content(I18n.t('devise.passwords.send_paranoid_instructions')) - expect(current_path).to eq new_user_session_path + expect(page).to have_current_path new_user_session_path, ignore_query: true end end @@ -50,7 +50,7 @@ RSpec.describe 'Password reset' do click_button 'Change your password' expect(page).to have_content(I18n.t('devise.passwords.updated_not_active')) - expect(current_path).to eq new_user_session_path + expect(page).to have_current_path new_user_session_path, ignore_query: true end end |