aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/symbol.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/symbol.rb b/activesupport/test/core_ext/symbol.rb
new file mode 100644
index 0000000000..ae2c585fc2
--- /dev/null
+++ b/activesupport/test/core_ext/symbol.rb
@@ -0,0 +1,8 @@
+require 'test/unit'
+require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/symbol'
+
+class TestSymbol < Test::Case::TestUnit
+ def test_to_proc
+ assert_equal %w(one two three), [:one, :two, :three].map &:to_s
+ end
+end