diff options
Diffstat (limited to 'railties/test/plugin_test.rb')
-rw-r--r-- | railties/test/plugin_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/plugin_test.rb b/railties/test/plugin_test.rb index 54eea13538..5ab1e15414 100644 --- a/railties/test/plugin_test.rb +++ b/railties/test/plugin_test.rb @@ -5,6 +5,14 @@ require 'test/unit' require 'active_support' require 'initializer' +unless defined?(RAILS_ROOT) + module Rails + class Initializer + RAILS_ROOT = '.' + end + end +end + class PluginTest < Test::Unit::TestCase class TestConfig < Rails::Configuration protected |