From 789523db5f2f6e84803717fd733de0031e67cd2a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 01:29:56 +0000 Subject: [PATCH] do stricter ApplicationHelperTest#test_truncate_single_line git-svn-id: http://svn.redmine.org/redmine/trunk@12825 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 965d4dda2..d33734d69 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -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 -- 2.39.5