Sha256: 4667d4cca9f76826988fe2cfbe03dcc4c2e8a2f7b368dd70bb943b6b057d7ec9

Contents?: true

Size: 1.92 KB

Versions: 3

Compression:

Stored size: 1.92 KB

Contents

Feature: reset my password
  As an unlogged in user
  I want to reset my password
  
Background:
  Given I am not logged in
	Given there is a "user" with "email" set to "bill@smith.com"
	Given the user reset token is set

Scenario: Visit user pswd reset
  When I visit the user pswd reset page
	Then I should see the view "users/pswd_reset_form"
	Then the "Your Email" field should be required
	Then I should see the "Login" link to the user login page
	Then I should see the "Reset Password" button

Scenario: The reset token is blank
	Given the reset token is blank
  When I visit the user pswd reset page
	Then I should see the view "users/pswd_forgot_form"

Scenario: The reset token is invalid 
	Given the reset token is invalid
  When I visit the user pswd reset page
	Then I should see the view "users/pswd_forgot_form"

Scenario: Enter an invalid email
	Given I visit the user pswd reset page
	Given I fill in "Your Email" with "wrong@wrong.com"
	Given I fill in "New Password" with "newpassword"
	Given I fill in "Confirm New Password" with "newpassword"
	When I press "Reset Password"
	Then I should see the view "users/pswd_reset_form"  
	Then the error message should be "Invalid Email"

Scenario: Enter a password does not match password confirmation
	Given I visit the user pswd reset page
	Given I fill in "Your Email" with "bill@smith.com"
	Given I fill in "New Password" with "newpassword"
	Given I fill in "Confirm New Password" with "wrong"
	When I press "Reset Password"
	Then I should see the view "users/pswd_reset_form"  
	Then the error message should be "Password Confirmation does not match"

Scenario: Enter a valid password
	Given I visit the user pswd reset page
	Given I fill in "Your Email" with "bill@smith.com"
	Given I fill in "New Password" with "newpassword"
	Given I fill in "Confirm New Password" with "newpassword"
	When I press "Reset Password"
	Then I should be logged in
	Then the success message should be "Password Changed"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rules_engine_users-0.0.3 rails_generators/templates/features/user/pswd_reset.feature
rules_engine_users-0.0.2 rails_generators/templates/features/user/pswd_reset.feature
rules_engine_users-0.0.1 rails_generators/templates/features/user/pswd_reset.feature