aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/isolation
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2009-10-16 18:10:12 -0700
committerCarl Lerche <carllerche@mac.com>2009-10-16 18:10:52 -0700
commite1fdc8bba3e427435927685e77937b3a478aa416 (patch)
tree75cb24d055729f56d06dbabd1afda56c757e9bf0 /railties/test/isolation
parent29ba9c030704fb76dc2debbfecbb10fd70233d18 (diff)
downloadrails-e1fdc8bba3e427435927685e77937b3a478aa416.tar.gz
rails-e1fdc8bba3e427435927685e77937b3a478aa416.tar.bz2
rails-e1fdc8bba3e427435927685e77937b3a478aa416.zip
Remove config.gem in favor of using the bundler. This makes config/boot.rb obsolete.
The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
Diffstat (limited to 'railties/test/isolation')
-rw-r--r--railties/test/isolation/abstract_unit.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb
index 750ec5d319..aafc9f68bb 100644
--- a/railties/test/isolation/abstract_unit.rb
+++ b/railties/test/isolation/abstract_unit.rb
@@ -114,16 +114,19 @@ module TestHelpers
end
def boot_rails
- # TMP mega hax to prevent boot.rb from actually booting
- Object.class_eval <<-RUBY, __FILE__, __LINE__+1
- module Rails
- Initializer = 'lol'
- require "#{app_path}/config/boot"
- remove_const(:Initializer)
- booter = VendorBoot.new('#{app_path}')
- booter.run
- end
- RUBY
+ %w(
+ actionmailer/lib
+ actionpack/lib
+ activemodel/lib
+ activerecord/lib
+ activeresource/lib
+ activesupport/lib
+ railties/lib
+ railties
+ ).reverse_each do |path|
+ path = File.expand_path("../../../../#{path}", __FILE__)
+ $:.unshift(path)
+ end
end
end
end