From 6d058bfde8d5cdf5a4cba820dc542cbe5bdcf5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 9 Jun 2023 22:34:19 +0000 Subject: [PATCH] Fix tests after #5515 --- test/integration/recoverable_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/recoverable_test.rb b/test/integration/recoverable_test.rb index 44cb0b9e2d..c391b0b2eb 100644 --- a/test/integration/recoverable_test.rb +++ b/test/integration/recoverable_test.rb @@ -18,7 +18,7 @@ def request_forgot_password(&block) yield if block_given? Devise.stubs(:friendly_token).returns("abcdef") - click_button 'Send me reset password instructions' + click_button 'Send me password reset instructions' end def reset_password(options = {}, &block) @@ -339,7 +339,7 @@ def reset_password(options = {}, &block) swap Devise, paranoid: true do visit_new_password_path fill_in "email", with: "arandomemail@test.com" - click_button 'Send me reset password instructions' + click_button 'Send me password reset instructions' assert_not_contain "1 error prohibited this user from being saved:" assert_not_contain "Email not found" @@ -353,7 +353,7 @@ def reset_password(options = {}, &block) user = create_user visit_new_password_path fill_in 'email', with: user.email - click_button 'Send me reset password instructions' + click_button 'Send me password reset instructions' assert_contain "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes." assert_current_url "/users/sign_in"