Sha256: 88dd8c5f16f9212673bc73205beabdc8e5e8b79a3d113d2e0fdd3b0c941cafe1

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 KB

Contents

Feature: change the user's details
  As an logged in administrator
  I want to change any user's details
  
Background:
  Given I am logged in as an administrator
	Given there is a "user"
	Given I visit the edit admin user page

Scenario: Visit the edit user page
	Then I should see the view "admin/users/edit"
	Then the "Full Name" field should be required
	Then the "Full Name" field should be "user" "full_name"
	Then the "Login Name" field should be required
	Then the "Login Name" field should be "user" "login"
	Then the "Email" field should be required
	Then the "Email" field should be "user" "email"
	Then the "Time Zone" field should be required
	Then the "Time Zone" field should be "user" "time_zone"
	Then the "Access Level" field should be required
	# Then the "Access Level" field should be "Account Disabled"
	Then the "Access Level" field should be "0"	
	Then I should see the "Cancel" link to the admin user page
	Then I should see the "Delete" link to the admin user page
	Then I should see the "Update" button

Scenario: I enter invalid details
	Given I fill in "Full Name" with ""
	When I press "Update"
	Then I should see the view "admin/users/edit"
	Then the form error message should be "Unable to Update User"
	Then the "Full Name" field should be an error

Scenario: I enter valid details
	Given I fill in "Full Name" with "New Name"
	When I press "Update"
	Then I should see the view "admin/users/show"
	Then the success message should be "User Updated"
	Then I should see "New Name"

	And I visit the edit admin user page

Scenario: I delete the user
  When I follow "Delete"
	Then I should see the view "admin/users/index"
	Then the success message should be "User Deleted"

Version data entries

3 entries across 3 versions & 1 rubygems

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