Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up cucumber.

  • Loading branch information...
commit 457be629ab4ef1dbdd619a5f7e4f744cd286d78c 1 parent ac56a1a
@gabebw gabebw authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 features/step_definitions/rails_steps.rb
View
16 features/step_definitions/rails_steps.rb
@@ -14,14 +14,14 @@
end
end
-When /^I generate a new rails application$/ do
+When 'I generate a new rails application' do
steps %{
When I run `rails new #{APP_NAME}`
And I cd to "#{APP_NAME}"
And I comment out the gem "turn" from the Gemfile
And I comment out the gem "coffee-rails" from the Gemfile
And I comment out the gem "uglifier" from the Gemfile
- And I reset Bundler environment variable
+ And I reset Bundler environment variables
And I set the "BUNDLE_GEMFILE" environment variable to "Gemfile"
And I successfully run `bundle install --local`
}
@@ -36,18 +36,18 @@
steps %{And I run `bundle install --local`}
end
-When /^I run the rspec generator$/ do
+When 'I run the rspec generator' do
steps %{
When I successfully run `rails generate rspec:install`
}
end
-When /^I configure the application to use rspec\-rails$/ do
+When 'I configure the application to use rspec-rails' do
append_to_gemfile "gem 'rspec-rails', '~> 2.6.1'"
steps %{And I run `bundle install --local`}
end
-When /^I configure the application to use shoulda-context$/ do
+When 'I configure the application to use shoulda-context' do
append_to_gemfile "gem 'shoulda-context', '~> 1.0.0'"
steps %{And I run `bundle install --local`}
end
@@ -56,7 +56,7 @@
ENV[key] = value
end
-When /^I configure a wildcard route$/ do
+When 'I configure a wildcard route' do
steps %{
When I write to "config/routes.rb" with:
"""
@@ -67,7 +67,7 @@
}
end
-When /^I append gems from Appraisal Gemfile$/ do
+When 'I append gems from Appraisal Gemfile' do
File.read(ENV['BUNDLE_GEMFILE']).split(/\n/).each do |line|
if line =~ /^gem "(?!rails|appraisal)/
append_to_gemfile line.strip
@@ -75,7 +75,7 @@
end
end
-When /^I reset Bundler environment variable$/ do
+When 'I reset Bundler environment variables' do
BUNDLE_ENV_VARS.each do |key|
ENV[key] = nil
end

0 comments on commit 457be62

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