aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-22 19:35:58 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-22 19:35:58 -0700
commitd23ab4fbb6fadd484d44d2f568eb81302a0a5670 (patch)
tree8aa4c0299cd3800f4943041403fbc909c3575ebd /railties
parent85b1a55f6d296f79c81e81c2ec90370504c1b0e1 (diff)
downloadrails-d23ab4fbb6fadd484d44d2f568eb81302a0a5670.tar.gz
rails-d23ab4fbb6fadd484d44d2f568eb81302a0a5670.tar.bz2
rails-d23ab4fbb6fadd484d44d2f568eb81302a0a5670.zip
Remove Symbol#to_proc dependency
Diffstat (limited to 'railties')
-rw-r--r--railties/test/plugin_locator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/plugin_locator_test.rb b/railties/test/plugin_locator_test.rb
index 471d9fc7c3..f028bd3a61 100644
--- a/railties/test/plugin_locator_test.rb
+++ b/railties/test/plugin_locator_test.rb
@@ -42,12 +42,12 @@ class PluginFileSystemLocatorTest < Test::Unit::TestCase
end
def test_should_return_all_plugins_found_under_the_set_plugin_paths
- assert_equal ["a", "acts_as_chunky_bacon", "engine", "gemlike", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort
+ assert_equal ["a", "acts_as_chunky_bacon", "engine", "gemlike", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map { |p| p.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", "gemlike", "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 { |p| p.name }.sort
@configuration.plugin_paths = [File.join(plugin_fixture_root_path, "alternate")]
assert_equal ["a"], @locator.plugins.map(&:name)