mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
15c466dd72
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
18 lines
No EOL
509 B
Ruby
18 lines
No EOL
509 B
Ruby
$:.unshift File.dirname(__FILE__) + "/../lib"
|
|
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
|
|
|
|
require 'test/unit'
|
|
require 'active_support'
|
|
require 'initializer'
|
|
|
|
# We need to set RAILS_ROOT if it isn't already set
|
|
RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
|
|
class Test::Unit::TestCase
|
|
def plugin_fixture_root_path
|
|
File.join(File.dirname(__FILE__), 'fixtures', 'plugins')
|
|
end
|
|
|
|
def only_load_the_following_plugins!(plugins)
|
|
@initializer.configuration.plugins = plugins
|
|
end
|
|
end |