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:
parent
d236827881
commit
08fd9a6491
1 changed files with 4 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue