diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2006-03-06 22:51:24 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2006-03-06 22:51:24 +0000 |
commit | 0332d882b6d6157c6983d1d78e4f5636fdb45229 (patch) | |
tree | 798f9ecb07d5ad88f971ba5b3250a0af02d0dd52 /activesupport/test | |
parent | 66386df3d98974fa3f3732693849fcd954da9bbf (diff) | |
download | rails-0332d882b6d6157c6983d1d78e4f5636fdb45229.tar.gz rails-0332d882b6d6157c6983d1d78e4f5636fdb45229.tar.bz2 rails-0332d882b6d6157c6983d1d78e4f5636fdb45229.zip |
forgot to commit the fixed test case! (yea right)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/array_ext_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb index 6a946064fc..266b5eefab 100644 --- a/activesupport/test/core_ext/array_ext_test.rb +++ b/activesupport/test/core_ext/array_ext_test.rb @@ -18,16 +18,16 @@ 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 - assert_equal "one, two and three", ['one', 'two', 'three'].to_sentence(:skip_last_comma => true) + assert_equal "one, two, and three", ['one', 'two', 'three'].to_sentence(:skip_last_comma => false) end def test_two_elements |