mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove the generated gemfile in railties tests since the rails gemfile is used.
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user