1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove the generated gemfile in railties tests since the rails gemfile is used.

This commit is contained in:
Carl Lerche 2010-02-02 11:10:34 -08:00
parent d236827881
commit 08fd9a6491

View file

@ -89,6 +89,10 @@ module TestHelpers
end
end
unless options[:gemfile]
File.delete"#{app_path}/Gemfile"
end
routes = File.read("#{app_path}/config/routes.rb")
if routes =~ /(\n\s*end\s*)\Z/
File.open("#{app_path}/config/routes.rb", 'w') do |f|