Skip to content

Commit 5ed2850

Browse files
committed
Capybara needs disambiguation
1 parent 42a0de9 commit 5ed2850

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

features/step_definitions/user_steps.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ def delete_user
3030
def sign_up
3131
delete_user
3232
visit '/users/sign_up'
33-
fill_in "Name", :with => @visitor[:name]
34-
fill_in "Email", :with => @visitor[:email]
35-
fill_in "Password", :with => @visitor[:password]
36-
fill_in "Password confirmation", :with => @visitor[:password_confirmation]
33+
fill_in "user_name", :with => @visitor[:name]
34+
fill_in "user_email", :with => @visitor[:email]
35+
fill_in "user_password", :with => @visitor[:password]
36+
fill_in "user_password_confirmation", :with => @visitor[:password_confirmation]
3737
click_button "Sign up"
3838
find_user
3939
end
4040

4141
def sign_in
4242
visit '/users/sign_in'
43-
fill_in "Email", :with => @visitor[:email]
44-
fill_in "Password", :with => @visitor[:password]
43+
fill_in "user_email", :with => @visitor[:email]
44+
fill_in "user_password", :with => @visitor[:password]
4545
click_button "Sign in"
4646
end
4747

@@ -123,8 +123,8 @@ def sign_in
123123

124124
When /^I edit my account details$/ do
125125
click_link "Edit account"
126-
fill_in "Name", :with => "newname"
127-
fill_in "Current password", :with => @visitor[:password]
126+
fill_in "user_name", :with => "newname"
127+
fill_in "user_current_password", :with => @visitor[:password]
128128
click_button "Update"
129129
end
130130

0 commit comments

Comments
 (0)