templates/admin/cucumber.rb in prologue-0.3.6 vs templates/admin/cucumber.rb in prologue-0.3.7
- old
+ new
@@ -15,11 +15,11 @@
As an administrator
I want to manage the application
So that I can have full control over the site
Scenario: Login as an admin
- Given a logged in admin user
+ Given a logged in admin
When I am on the admin
Then I should see "Admin"
FILE
end
@@ -32,17 +32,18 @@
Background:
Given the following role records
| name |
| Member |
+ And a logged in admin
Scenario: Create, update, delete a user in the admin
- Given a logged in admin user
When I am on the add user page
- And I fill in "Name" with "Big Boi"
- And I fill in "Email" with "big@sirluciousleftfoot.com"
- And I fill in "Password" with "Ch!coDusty$"
- And I fill in "Password confirmation" with "Ch!coDusty$"
+ And I fill in the following:
+ | Email | big@sirluciousleftfoot.com |
+ | Name | Big Boi |
+ | Password | Ch!coDusty$ |
+ | Password confirmation | Ch!coDusty$ |
And I check "Member"
And I press "Save"
Then I should see "User created!"
And I should see "Big Boi"
\ No newline at end of file