Permalink
Browse files

Remove the generated gemfile in railties tests since the rails gemfil…

…e is used.
  • Loading branch information...
1 parent d236827 commit 08fd9a6491b2be65727199e9fa186fc939a64965 Carl Lerche committed Feb 2, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/test/isolation/abstract_unit.rb
@@ -89,6 +89,10 @@ def build_app(options = {})
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|

0 comments on commit 08fd9a6

Please sign in to comment.