From 5d785dbc1142aab3b6bb1bc1d0e4d611c7fe45c5 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 20 Nov 2005 22:36:02 +0000 Subject: Add Array#to_strings which to_s's all elements in an array. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/core_ext/array_ext_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb index 159dc2a478..b07fd9854f 100644 --- a/activesupport/test/core_ext/array_ext_test.rb +++ b/activesupport/test/core_ext/array_ext_test.rb @@ -33,4 +33,8 @@ class ArrayExtConversionTests < Test::Unit::TestCase def test_one_element assert_equal "one", ['one'].to_sentence end + + def test_to_strings + assert_equal %w(one two three), [:one, :two, :three].to_strings + end end -- cgit v1.2.3