Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add Cucumber features for user show and edit

  • Loading branch information...
commit df4875d99cfabbd79937df7c839e62f29fadae26 1 parent b2f5f0c
@fortuity authored
View
15 features/users/user_edit.feature
@@ -0,0 +1,15 @@
+Feature: Edit User
+ As a registered user of the website
+ I want to edit my user profile
+ so I can change my username
+
+ Scenario: I sign in and edit my account
+ Given I am a user named "foo" with an email "user@test.com" and password "please"
+ When I sign in as "user@test.com/please"
+ Then I should be signed in
+ When I follow "Edit account"
+ And I fill in "Name" with "baz"
+ And I fill in "Current password" with "please"
+ And I press "Update"
+ And I go to the homepage
+ Then I should see "User: baz"
View
9 features/users/user_show.feature
@@ -0,0 +1,9 @@
+Feature: Show Users
+ As a visitor to the website
+ I want to see registered users listed on the homepage
+ so I can know if the site has users
+
+ Scenario: Viewing users
+ Given I am a user named "foo" with an email "user@test.com" and password "please"
+ When I go to the homepage
+ Then I should see "User: foo"
Please sign in to comment.
Something went wrong with that request. Please try again.