aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-22 19:52:28 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-22 19:52:28 -0700
commitbab2bfa69220ca1b6c7b56dccc79cf8e41245306 (patch)
treed3a838a665164ff2783ef68f1dde00135fe3b72b /railties
parent236169e85ec46644795520b826543187cf93b984 (diff)
downloadrails-bab2bfa69220ca1b6c7b56dccc79cf8e41245306.tar.gz
rails-bab2bfa69220ca1b6c7b56dccc79cf8e41245306.tar.bz2
rails-bab2bfa69220ca1b6c7b56dccc79cf8e41245306.zip
Removed rest of Symbol#to_proc from railties tests
Diffstat (limited to 'railties')
-rw-r--r--railties/test/gem_dependency_test.rb2
-rw-r--r--railties/test/plugin_test_helper.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/gem_dependency_test.rb b/railties/test/gem_dependency_test.rb
index 189ad02b76..d9cd5148a3 100644
--- a/railties/test/gem_dependency_test.rb
+++ b/railties/test/gem_dependency_test.rb
@@ -18,7 +18,7 @@ class GemDependencyTest < Test::Unit::TestCase
def test_configuration_adds_gem_dependency
config = Rails::Configuration.new
config.gem "xaws-s3x", :lib => "aws/s3", :version => "0.4.0"
- assert_equal [["install", "xaws-s3x", "--version", '"= 0.4.0"']], config.gems.collect(&:install_command)
+ assert_equal [["install", "xaws-s3x", "--version", '"= 0.4.0"']], config.gems.collect { |g| g.install_command }
end
def test_gem_creates_install_command
diff --git a/railties/test/plugin_test_helper.rb b/railties/test/plugin_test_helper.rb
index f8c094d19f..93d50dc07f 100644
--- a/railties/test/plugin_test_helper.rb
+++ b/railties/test/plugin_test_helper.rb
@@ -24,6 +24,6 @@ class Test::Unit::TestCase
end
def assert_plugins(list_of_names, array_of_plugins, message=nil)
- assert_equal list_of_names.map(&:to_s), array_of_plugins.map(&:name), message
+ assert_equal list_of_names.map { |n| n.to_s }, array_of_plugins.map { |p| p.name }, message
end
-end \ No newline at end of file
+end