diff options
author | Jacek Becela <jacek.becela@gmail.com> | 2008-05-28 21:30:44 +0200 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2008-06-08 13:05:45 -0400 |
commit | 86a042ddd9dba8f62e7328c7258a798aef73d57f (patch) | |
tree | bedcafcbc1a37ba1ea6d50956febf32bc2611d92 /railties/test/plugin_locator_test.rb | |
parent | b336ce9e062e4de0d20aa359b08e86fe83b6dd89 (diff) | |
download | rails-86a042ddd9dba8f62e7328c7258a798aef73d57f.tar.gz rails-86a042ddd9dba8f62e7328c7258a798aef73d57f.tar.bz2 rails-86a042ddd9dba8f62e7328c7258a798aef73d57f.zip |
Make plugins initialize also from rails/init.rb to ensure consistency with gems used as plugins
[#272 state:resolved]
Diffstat (limited to 'railties/test/plugin_locator_test.rb')
-rw-r--r-- | railties/test/plugin_locator_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/plugin_locator_test.rb b/railties/test/plugin_locator_test.rb index 5f1dd991ea..363fa27f15 100644 --- a/railties/test/plugin_locator_test.rb +++ b/railties/test/plugin_locator_test.rb @@ -47,12 +47,12 @@ uses_mocha "Plugin Locator Tests" do end def test_should_return_all_plugins_found_under_the_set_plugin_paths - assert_equal ["a", "acts_as_chunky_bacon", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort + assert_equal ["a", "acts_as_chunky_bacon", "gemlike", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort end def test_should_find_plugins_only_under_the_plugin_paths_set_in_configuration @configuration.plugin_paths = [File.join(plugin_fixture_root_path, "default")] - assert_equal ["acts_as_chunky_bacon", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort + assert_equal ["acts_as_chunky_bacon", "gemlike", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort @configuration.plugin_paths = [File.join(plugin_fixture_root_path, "alternate")] assert_equal ["a"], @locator.plugins.map(&:name) |