]> source.dussan.org Git - redmine.git/commitdiff
do stricter ApplicationHelperTest#test_truncate_single_line
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 01:29:56 +0000 (01:29 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 01:29:56 +0000 (01:29 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12825 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index 965d4dda28f4c71b0a44ec6060de742c6762f56a..d33734d6980b2d71a8bcdefa9915540e916a6f91 100644 (file)
@@ -1346,8 +1346,8 @@ RAW
     result = truncate_single_line("#{str}\n#{str}", :length => 10)
     assert_equal "01234 0...", result
     assert !result.html_safe?
-    result = truncate_single_line("#{str}<&#>\n#{str}\n#{str}", :length => 15)
-    assert_equal "01234<&#> 01...", result
+    result = truncate_single_line("#{str}<&#>\n#{str}#{str}", :length => 16)
+    assert_equal "01234<&#> 012...", result
     assert !result.html_safe?
   end