diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-29 10:15:25 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-29 10:15:25 +0000 |
commit | b031198638d4ef2ba199ef4a1abb4627dcd0bad7 (patch) | |
tree | 17645786a0f54d802f6dba4083ccf81f0f3ec019 | |
parent | d2ceb1750873fcc3886a8e200372d3b6e0b21a43 (diff) | |
download | rails-b031198638d4ef2ba199ef4a1abb4627dcd0bad7.tar.gz rails-b031198638d4ef2ba199ef4a1abb4627dcd0bad7.tar.bz2 rails-b031198638d4ef2ba199ef4a1abb4627dcd0bad7.zip |
Cleaning up railties tests. Set RAILS_ROOT for Rails::Initializer if undefined.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/test/plugin_test.rb | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 6f36cb541f..7c4fcf130d 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Cleaning up railties tests. [Kevin Clark] + * Add Dependencies.load_once_paths. [Nicholas Seckar] * Updated to script.aculo.us 1.6.2 [Thomas Fuchs] 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 |