Sha256: 6dff4bc5d165374c80be83bdfe2a2b88bf778112e1a19bade2dbda62b38cfbe7

Contents?: true

Size: 1.93 KB

Versions: 3

Compression:

Stored size: 1.93 KB

Contents

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

Scenario: Visit user welcome
  When I visit the user welcome page
	Then I should see the view "users/welcome_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 "Set Password" button

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

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

Scenario: Enter an invalid email
	Given I visit the user welcome 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 "Set Password"
	Then I should see the view "users/welcome_form"  
	Then the error message should be "Invalid Email"

Scenario: Enter a password that does not match password confirmation
	Given I visit the user welcome 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 "Set Password"
	Then I should see the view "users/welcome_form"  
	Then the error message should be "Password Confirmation does not match"

Scenario: Enter a valid password
	Given I visit the user welcome 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 "Set Password"
	Then I should be logged in
	Then the success message should be "Password Created"

Version data entries

3 entries across 3 versions & 1 rubygems

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