Skip to content
This repository
Browse code

Clean up cucumber.

  • Loading branch information...
commit 457be629ab4ef1dbdd619a5f7e4f744cd286d78c 1 parent ac56a1a
Gabe Berke-Williams authored April 09, 2012

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. 16  features/step_definitions/rails_steps.rb
16  features/step_definitions/rails_steps.rb
@@ -14,14 +14,14 @@
14 14
   end
15 15
 end
16 16
 
17  
-When /^I generate a new rails application$/ do
  17
+When 'I generate a new rails application' do
18 18
   steps %{
19 19
     When I run `rails new #{APP_NAME}`
20 20
     And I cd to "#{APP_NAME}"
21 21
     And I comment out the gem "turn" from the Gemfile
22 22
     And I comment out the gem "coffee-rails" from the Gemfile
23 23
     And I comment out the gem "uglifier" from the Gemfile
24  
-    And I reset Bundler environment variable
  24
+    And I reset Bundler environment variables
25 25
     And I set the "BUNDLE_GEMFILE" environment variable to "Gemfile"
26 26
     And I successfully run `bundle install --local`
27 27
   }
@@ -36,18 +36,18 @@
36 36
   steps %{And I run `bundle install --local`}
37 37
 end
38 38
 
39  
-When /^I run the rspec generator$/ do
  39
+When 'I run the rspec generator' do
40 40
   steps %{
41 41
     When I successfully run `rails generate rspec:install`
42 42
   }
43 43
 end
44 44
 
45  
-When /^I configure the application to use rspec\-rails$/ do
  45
+When 'I configure the application to use rspec-rails' do
46 46
   append_to_gemfile "gem 'rspec-rails', '~> 2.6.1'"
47 47
   steps %{And I run `bundle install --local`}
48 48
 end
49 49
 
50  
-When /^I configure the application to use shoulda-context$/ do
  50
+When 'I configure the application to use shoulda-context' do
51 51
   append_to_gemfile "gem 'shoulda-context', '~> 1.0.0'"
52 52
   steps %{And I run `bundle install --local`}
53 53
 end
@@ -56,7 +56,7 @@
56 56
   ENV[key] = value
57 57
 end
58 58
 
59  
-When /^I configure a wildcard route$/ do
  59
+When 'I configure a wildcard route' do
60 60
   steps %{
61 61
     When I write to "config/routes.rb" with:
62 62
     """
@@ -67,7 +67,7 @@
67 67
   }
68 68
 end
69 69
 
70  
-When /^I append gems from Appraisal Gemfile$/ do
  70
+When 'I append gems from Appraisal Gemfile' do
71 71
   File.read(ENV['BUNDLE_GEMFILE']).split(/\n/).each do |line|
72 72
     if line =~ /^gem "(?!rails|appraisal)/
73 73
       append_to_gemfile line.strip
@@ -75,7 +75,7 @@
75 75
   end
76 76
 end
77 77
 
78  
-When /^I reset Bundler environment variable$/ do
  78
+When 'I reset Bundler environment variables' do
79 79
   BUNDLE_ENV_VARS.each do |key|
80 80
     ENV[key] = nil
81 81
   end

0 notes on commit 457be62

Please sign in to comment.
Something went wrong with that request. Please try again.