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|