bigfleet (owner)

Fork Of

gist: 144719 by dancroak proposed "rake steps", gett...

Revisions

gist: 144728 Download_button fork
public
Public Clone URL: git://gist.github.com/144728.git
Embed All Files: show embed
close_with_color_by_jason_morrison #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ ack \(Given\|When\|Then\) features/step_definitions
 
features/step_definitions/admin_steps.rb
3:Given /^I signed up as an admin with "(.*)\/(.*)"$/ do |email, password|
10:Given /^I signed up as an admin who cannot publish deals with "(.*)\/(.*)"$/ do |email, password|
20:Then /^I should see the admin index page$/ do
24:Then /^I should see a user named "(.*)"$/ do |name|
 
features/step_definitions/clearance_steps.rb
3:Then /^I should see error messages$/ do
9:Given /^no user exists with an email of "(.*)"$/ do |email|
13:Given /^I signed up with "(.*)\/(.*)"$/ do |email, password|
21:Given /^I am signed up and confirmed as "(.*)\/(.*)"$/ do |email, password|
31:Then /^I should be signed in$/ do
proposed #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ rake steps
 
features/step_definitions/admin_steps.rb
3: I signed up as an admin with "#{email}/#{password}"
10: I signed up as an admin who cannot publish deals with "#{email}/#{password}"
20: I should see the admin index page
24: I should see a user named "#{name}"
 
features/step_definitions/clearance_steps.rb
3: Then /^I should see error messages$/ do
9: Given /^no user exists with an email of "#{email}"
13: I signed up with "#{email}/#{password}"
21: I am signed up and confirmed as "#{email}/#{password}"
31: I should be signed in