5292899c9a
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
10 lines
275 B
Ruby
10 lines
275 B
Ruby
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
|