Use correct version of RSpec in generated Rails app.
This commit is contained in:
parent
c358d57d3d
commit
4fdb82707c
|
@ -43,7 +43,7 @@ When 'I run the rspec generator' do
|
||||||
end
|
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'"
|
append_to_gemfile "gem 'rspec-rails', '~> 2.8.1'"
|
||||||
steps %{And I run `bundle install --local`}
|
steps %{And I run `bundle install --local`}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ When 'I configure a wildcard route' do
|
||||||
end
|
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|
|
File.read(ENV['BUNDLE_GEMFILE']).split("\n").each do |line|
|
||||||
if line =~ /^gem "(?!rails|appraisal)/
|
if line =~ /^gem "(?!rails|appraisal)/
|
||||||
append_to_gemfile line.strip
|
append_to_gemfile line.strip
|
||||||
end
|
end
|
||||||
|
@ -82,7 +82,7 @@ When 'I reset Bundler environment variables' do
|
||||||
end
|
end
|
||||||
|
|
||||||
When /^I comment out the gem "([^"]*)" from the Gemfile$/ do |gemname|
|
When /^I comment out the gem "([^"]*)" from the Gemfile$/ do |gemname|
|
||||||
comment_out_gem_in_gemfile gemname
|
comment_out_gem_in_gemfile(gemname)
|
||||||
end
|
end
|
||||||
|
|
||||||
module FileHelpers
|
module FileHelpers
|
||||||
|
|
Loading…
Reference in New Issue