mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user