@@ -30,18 +30,18 @@ def delete_user
3030def 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
3939end
4040
4141def 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"
4646end
4747
@@ -123,8 +123,8 @@ def sign_in
123123
124124When /^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"
129129end
130130
0 commit comments