diff options
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index ff4ee6332b..dcadf3f485 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -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| |