Sha256: 202fdfa778d33239c220ab082800eabbfc952344faaa8eb69dcf423dbee42d45

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

Feature: Password reset
  In order to sign in even if user forgot their password
  A user
  Should be able to reset it
  
    Scenario: User is not signed up
      Given there is no user with "email@person.com"
      When I request password reset link to be sent to "email@person.com"
      Then I should see "Unknown email"
  
    Scenario: User requests password reset
      Given I am signed up and confirmed as "email@person.com/password"
      When I request password reset link to be sent to "email@person.com"
      Then I should see "instructions for changing your password"
      And a password reset message should be sent to "email@person.com"
      
    Scenario: User updated his password and types wrong confirmation
      Given I am signed up and confirmed as "email@person.com/password"
      When I follow the password reset link sent to "email@person.com"
      And I update my password with "newpassword/wrongconfirmation"
      Then I should see error messages
      And I should not be signed in      
      
    Scenario: User updates his password
      Given I am signed up and confirmed as "email@person.com/password"
      When I follow the password reset link sent to "email@person.com"
      And I update my password with "newpassword/newpassword"
      Then I should be signed in
      When I sign out
      And I sign in as "email@person.com/newpassword"
      Then I should be signed in
      
    Scenario: User requests password reset without token
      Given a user exists with an email of "user@one.com"
      When I try to change the password of "user@one.com" without token
      Then I should be forbidden



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thoughtbot-clearance-0.4.9 generators/clearance_features/templates/features/password_reset.feature