File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11Feature : Signing in
2-
2+
33 Scenario : Unsuccessful signin
44 Given a user visits the signin page
5- When he submits invalid signin information
6- Then he should see an error message
7-
5+ When they submit invalid signin information
6+ Then they should see an error message
7+
88 Scenario : Successful signin
99 Given a user visits the signin page
1010 And the user has an account
1111 When the user submits valid signin information
12- Then he should see his profile page
13- And he should see a signout link
12+ Then they should see their profile page
13+ And they should see a signout link
Original file line number Diff line number Diff line change 22 visit signin_path
33end
44
5- When /^he submits invalid signin information$/ do
5+ When /^they submit invalid signin information$/ do
66 click_button "Sign in"
77end
88
9- Then /^he should see an error message$/ do
9+ Then /^they should see an error message$/ do
1010 page . should have_selector ( 'div.alert.alert-error' )
1111end
1212
1818When /^the user submits valid signin information$/ do
1919 visit signin_path
2020 fill_in "Email" , with : @user . email
21- fill_in "Password" , with : @user . password
21+ fill_in "Password" , with : @user . password
2222 click_button "Sign in"
2323end
2424
25- Then /^he should see his profile page$/ do
25+ Then /^they should see their profile page$/ do
2626 page . should have_selector ( 'title' , text : @user . name )
2727end
2828
29- Then /^he should see a signout link$/ do
29+ Then /^they should see a signout link$/ do
3030 page . should have_link ( 'Sign out' , href : signout_path )
3131end
You can’t perform that action at this time.
0 commit comments