From 15c466dd729e744379380d08b8c25b9860fd836d Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Fri, 2 Mar 2007 23:39:29 +0000 Subject: Split out the basic plugin locator functionality into an abstract super class. Add a FileSystemLocator to do the job of checking the plugin_paths for plugins. Add plugin_locators configuration option which will iterate over the set of plugin locators and load each of the plugin loaders they return. Rename locater everywhere to locator. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/test/plugin_test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/test/plugin_test_helper.rb') diff --git a/railties/test/plugin_test_helper.rb b/railties/test/plugin_test_helper.rb index 58649ea2fa..0b065a5444 100644 --- a/railties/test/plugin_test_helper.rb +++ b/railties/test/plugin_test_helper.rb @@ -11,4 +11,8 @@ 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 \ No newline at end of file -- cgit v1.2.3