Sha256: d4ee1e1dd1d87aa3ecafe649ae4fad17a3c792d82474e4d2fe41106d00671d96

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 KB

Contents

Feature: Manage users
  In order to control who can access the Client Area and CMS a website administrator will be able to manage user accounts

  Background:
    Given I am signed in as a website_administrator

  Scenario: List Users
    Given 20 users exist
    And I am on the users admin page
    Then I should see a list of users

  Scenario: Create a User
    Given I am on the users admin page
    When I follow "Create New User"
    And I fill in the following:
      | Name                  | Mr Spoon              |
      | Email                 | spoon@buttonmoon.com  |
      | Password              | s3cur3                |
      | Password confirmation | s3cur3                |
    And press "Create"
    Then the user should be able to sign in as "spoon@buttonmoon.com/s3cur3"

  Scenario: Edit User information
    Given a user exists with the attrubutes:
      | name                  | Mr Spoon              |
      | email                 | spoon@buttonmoon.com  |
      | password              | s3cur3                |
      | password_confirmation | s3cur3                |
    And I am on the users admin page
    When I follow "Mr Spoon"
    And I fill in "Email" with "spoon@hotmail.com"
    And press "Update"
    Then the user should be able to sign in as "spoon@hotmail.com/s3cur3"


  Scenario: Delete a User
    Given a user exists with the attrubutes:
      | name                  | Mr Spoon              |
      | email                 | spoon@buttonmoon.com  |
      | password              | s3cur3                |
      | password_confirmation | s3cur3                |
    And I am on the users admin page
    When I follow "Delete" within "tr:contains('Mr Spoon')"
    Then the user should not be able to sign in as "spoon@buttonmoon.com/s3cur3"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noodall-devise-0.0.1 features/manage_users.feature