aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/array_ext_test.rb
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2006-03-08 16:13:13 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2006-03-08 16:13:13 +0000
commit8b4729a0eb2020cc5f7ed93951e97335bd3d2700 (patch)
tree5c96fa6025fc882f75698797589b790196f3e232 /activesupport/test/core_ext/array_ext_test.rb
parente320f28945290b527a5634ea473b5a8543d5ab0a (diff)
downloadrails-8b4729a0eb2020cc5f7ed93951e97335bd3d2700.tar.gz
rails-8b4729a0eb2020cc5f7ed93951e97335bd3d2700.tar.bz2
rails-8b4729a0eb2020cc5f7ed93951e97335bd3d2700.zip
reverted #to_sentence to use red, green, and blue style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext/array_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/array_ext_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb
index e13c57d262..956c10665d 100644
--- a/activesupport/test/core_ext/array_ext_test.rb
+++ b/activesupport/test/core_ext/array_ext_test.rb
@@ -18,12 +18,12 @@ class ArrayExtConversionTests < Test::Unit::TestCase
assert_equal "", [].to_sentence
assert_equal "one", ['one'].to_sentence
assert_equal "one and two", ['one', 'two'].to_sentence
- assert_equal "one, two and three", ['one', 'two', 'three'].to_sentence
+ assert_equal "one, two, and three", ['one', 'two', 'three'].to_sentence
end
def test_to_sentence_with_connector
- assert_equal "one, two and also three", ['one', 'two', 'three'].to_sentence(:connector => 'and also')
+ assert_equal "one, two, and also three", ['one', 'two', 'three'].to_sentence(:connector => 'and also')
end
def test_to_sentence_with_skip_last_comma