Sha256: 6e80e74564d19f9024a9eee92b3f4b6e0ffdb9343c1485df6778042f57889442

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clearance-1.0.0.rc2 features/engine/visitor_resets_password.feature
clearance-1.0.0.rc1 features/engine/visitor_resets_password.feature