Browse files

forgot to commit the fixed test case! (yea right)

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 66386df commit 0332d882b6d6157c6983d1d78e4f5636fdb45229 Tobias Lütke committed Mar 6, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/test/core_ext/array_ext_test.rb
@@ -18,16 +18,16 @@ def test_plain_array_to_sentence
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
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')
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)
def test_two_elements

0 comments on commit 0332d88

Please sign in to comment.