提交 0332d882 编写于 作者: T Tobias Lütke

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
上级 66386df3
......@@ -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
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册