Removed rest of Symbol#to_proc from railties tests

This commit is contained in:
Jeremy Kemper
2009-04-22 19:52:28 -07:00
parent 236169e85e
commit bab2bfa692
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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
end