diff options
Diffstat (limited to 'railties/test/initializer')
-rw-r--r-- | railties/test/initializer/test_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/initializer/test_helper.rb b/railties/test/initializer/test_helper.rb index f6a2547efc..9798b69ba5 100644 --- a/railties/test/initializer/test_helper.rb +++ b/railties/test/initializer/test_helper.rb @@ -38,7 +38,8 @@ module Rails def boot! # Require the initializer - require "#{RAILS_FRAMEWORK_ROOT}/railties/lib/initializer" + $:.unshift "#{RAILS_FRAMEWORK_ROOT}/railties/lib" + require "rails/initializer" # Run the initializer the same way boot.rb does it Rails::Initializer.run(:install_gem_spec_stubs) Rails::GemDependency.add_frozen_gem_path |