aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/symbol_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext/symbol_test.rb')
-rw-r--r--activesupport/test/core_ext/symbol_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/symbol_test.rb b/activesupport/test/core_ext/symbol_test.rb
index fec504d9d1..b30bd0b985 100644
--- a/activesupport/test/core_ext/symbol_test.rb
+++ b/activesupport/test/core_ext/symbol_test.rb
@@ -4,5 +4,7 @@ require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/symbol'
class SymbolTests < Test::Unit::TestCase
def test_to_proc
assert_equal %w(one two three), [:one, :two, :three].map(&:to_s)
+ assert_equal(%w(one two three),
+ {1 => "one", 2 => "two", 3 => "three"}.sort_by(&:first).map(&:last))
end
end