Skip to content

Commit 2222df1

Browse files
committed
Get rid of the last of web_steps.rb, huzzah
1 parent 06eba8f commit 2222df1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

features/step_definitions/user_steps.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
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-
81
Given /^I am not logged in$/ do
92
visit '/users/sign_out'
103
end
114

12-
When /^I go to the homepage$/ do
13-
visit '/'
14-
end
15-
165
Then /^I should be signed in$/ do
176
page.should have_content "Logout"
187
page.should_not have_content "Sign up"
@@ -29,10 +18,6 @@
2918
visit '/users/sign_out'
3019
end
3120

32-
Then /^I should see "([^"]*)"$/ do |text|
33-
page.should have_content(text)
34-
end
35-
3621
def valid_user
3722
@user ||= { :name => "Testy McUserton", :email => "testy@userton.com",
3823
:password => "please", :password_confirmation => "please"}

0 commit comments

Comments
 (0)