Add feature spec about managing passwords (with the courtesy of kemenaran)
This commit is contained in:
parent
149b0b5797
commit
7fbedb78fb
2 changed files with 64 additions and 0 deletions
|
@ -78,6 +78,13 @@ module FeatureHelpers
|
|||
value
|
||||
end
|
||||
end
|
||||
|
||||
def click_reset_password_link_for(email)
|
||||
reset_password_email = open_email(email)
|
||||
token_params = reset_password_email.body.match(/reset_password_token=[^"]+/)
|
||||
|
||||
visit "/users/password/edit?#{token_params}"
|
||||
end
|
||||
end
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue