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
|
||||
|
||||
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`}
|
||||
end
|
||||
|
||||
|
@ -68,7 +68,7 @@ When 'I configure a wildcard route' do
|
|||
end
|
||||
|
||||
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)/
|
||||
append_to_gemfile line.strip
|
||||
end
|
||||
|
@ -82,7 +82,7 @@ When 'I reset Bundler environment variables' do
|
|||
end
|
||||
|
||||
When /^I comment out the gem "([^"]*)" from the Gemfile$/ do |gemname|
|
||||
comment_out_gem_in_gemfile gemname
|
||||
comment_out_gem_in_gemfile(gemname)
|
||||
end
|
||||
|
||||
module FileHelpers
|
||||
|
|
Loading…
Reference in New Issue