Sha256: eff91ab0da505ec7e4c368f953dbd86f696d8f09f16e9bbddf9f4fce1b3e9a2c

Contents?: true

Size: 275 Bytes

Versions: 9

Compression:

Stored size: 275 Bytes

Contents

require '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

Version data entries

9 entries across 8 versions & 5 rubygems

Version Path
kajam-1.0.3.rc2 vendor/rails/activesupport/test/core_ext/symbol_test.rb
radiant-1.0.0.rc2 vendor/rails/activesupport/test/core_ext/symbol_test.rb
radiant-1.0.0.rc1 vendor/rails/activesupport/test/core_ext/symbol_test.rb
radiant-0.9.0.rc2 vendor/rails/activesupport/test/core_ext/symbol_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/test/core_ext/symbol_test.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/test/core_ext/symbol_test.rb
recliner-0.0.1 vendor/activesupport/test/core_ext/symbol_test.rb
antfarm-0.3.0 rails/vendor/rails/activesupport/test/core_ext/symbol_test.rb
antfarm-0.4.0 rails/vendor/rails/activesupport/test/core_ext/symbol_test.rb