Sha256: 9c29a1bcb2db76f7839dc973b0031a192d5c5e1ace55fe236a98546e065374a4

Contents?: true

Size: 1.64 KB

Versions: 8

Compression:

Stored size: 1.64 KB

Contents

Feature: Password reset

  In order to sign in even if I forgot my password
  As a user
  I want to reset my password

  Scenario: User is not signed up
    When I reset the password for "unknown.email@example.com"
    Then I am told email is unknown

  Scenario: User is signed up and requests password reset
    Given I signed up with "email@example.com"
    When I reset the password for "email@example.com"
    Then instructions for changing my password are emailed to "email@example.com"

  Scenario: User tries to reset his password with a blank password
    Given I signed up with "email@example.com"
    When I reset the password for "email@example.com"
    And I follow the password reset link sent to "email@example.com"
    And I update my password with ""
    Then I am told to enter a password
    And I should be signed out

  Scenario: User is signed up and updates his password
    Given I signed up with "email@example.com"
    When I reset the password for "email@example.com"
    And I follow the password reset link sent to "email@example.com"
    And I update my password with "newpassword"
    Then I should be signed in
    When I sign out
    Then I should be signed out
    When I sign in with "email@example.com" and "newpassword"
    Then I should be signed in

  Scenario: User who was created before Clearance was installed creates password for first time
    Given a user "email@example.com" exists without a salt, remember token, or password
    When I reset the password for "email@example.com"
    When I follow the password reset link sent to "email@example.com"
    And I update my password with "newpassword"
    Then I should be signed in

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
clearance-0.16.3 features/engine/visitor_resets_password.feature
clearance-0.16.2 features/engine/visitor_resets_password.feature
clearance-0.16.1 features/engine/visitor_resets_password.feature
clearance-0.16.0 features/engine/visitor_resets_password.feature
clearance-0.15.0 features/engine/visitor_resets_password.feature
clearance-0.14.0 features/engine/visitor_resets_password.feature
clearance-0.13.2 features/engine/visitor_resets_password.feature
clearance-0.13.0 features/engine/visitor_resets_password.feature