diff options
author | Carl Lerche <carllerche@mac.com> | 2010-02-02 11:10:34 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-02-02 15:51:24 -0800 |
commit | 08fd9a6491b2be65727199e9fa186fc939a64965 (patch) | |
tree | d1d44e7ffb84b1418732b6d84e9508d78f2c8568 /railties/test/isolation | |
parent | d236827881d119fb9ad25c81ce8e7756f1966823 (diff) | |
download | rails-08fd9a6491b2be65727199e9fa186fc939a64965.tar.gz rails-08fd9a6491b2be65727199e9fa186fc939a64965.tar.bz2 rails-08fd9a6491b2be65727199e9fa186fc939a64965.zip |
Remove the generated gemfile in railties tests since the rails gemfile is used.
Diffstat (limited to 'railties/test/isolation')
-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| |