diff options
author | Marcel Molina <marcel@vernix.org> | 2007-03-02 23:39:29 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-03-02 23:39:29 +0000 |
commit | 15c466dd729e744379380d08b8c25b9860fd836d (patch) | |
tree | 1adf48f88b4cb7d7d98e939584f6c3c7a304bba5 /railties/test/plugin_test_helper.rb | |
parent | b0e1430c523cf09155f72d5996be2cc2bf8e2eb7 (diff) | |
download | rails-15c466dd729e744379380d08b8c25b9860fd836d.tar.gz rails-15c466dd729e744379380d08b8c25b9860fd836d.tar.bz2 rails-15c466dd729e744379380d08b8c25b9860fd836d.zip |
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
Diffstat (limited to 'railties/test/plugin_test_helper.rb')
-rw-r--r-- | railties/test/plugin_test_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |