File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
features/step_definitions Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1- Given /^I am a user named "([^"]*)" with an email "([^"]*)" and password "([^"]*)"$/ do |name , email , password |
2- User . new ( :name => name ,
3- :email => email ,
4- :password => password ,
5- :password_confirmation => password ) . save!
6- end
7-
81Given /^I am not logged in$/ do
92 visit '/users/sign_out'
103end
114
12- When /^I go to the homepage$/ do
13- visit '/'
14- end
15-
165Then /^I should be signed in$/ do
176 page . should have_content "Logout"
187 page . should_not have_content "Sign up"
2918 visit '/users/sign_out'
3019end
3120
32- Then /^I should see "([^"]*)"$/ do |text |
33- page . should have_content ( text )
34- end
35-
3621def valid_user
3722 @user ||= { :name => "Testy McUserton" , :email => "testy@userton.com" ,
3823 :password => "please" , :password_confirmation => "please" }
You can’t perform that action at this time.
0 commit comments