Skip to content

Commit c81a453

Browse files
committed
Switch to gender-neutral language
1 parent 8ee96e5 commit c81a453

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

features/signing_in.feature

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Feature: 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

features/step_definitions/authentication_steps.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
visit signin_path
33
end
44

5-
When /^he submits invalid signin information$/ do
5+
When /^they submit invalid signin information$/ do
66
click_button "Sign in"
77
end
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')
1111
end
1212

@@ -18,14 +18,14 @@
1818
When /^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"
2323
end
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)
2727
end
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)
3131
end

0 commit comments

Comments
 (0)