Skip to content

Commit

Permalink
Fix tests after #5515
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jun 9, 2023
1 parent ad172bd commit 6d058bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/recoverable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 6d058bf

Please sign in to comment.