aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/symbol_test.rb
blob: 943133496a85a777ed703ae2ad59cbf57f3b2aa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
require File.dirname(__FILE__) + '/../abstract_unit'

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