mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Removed rest of Symbol#to_proc from railties tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user