Skip to content

Instantly share code, notes, and snippets.

@croaky
Created July 10, 2009 19:08
Show Gist options
  • Select an option

  • Save croaky/144719 to your computer and use it in GitHub Desktop.

Select an option

Save croaky/144719 to your computer and use it in GitHub Desktop.
proposed "rake steps", getting close with ack (and in color!)
$ 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
$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment