do stricter ApplicationHelperTest#test_truncate_single_line
git-svn-id: http://svn.redmine.org/redmine/trunk@12825 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fc4004d0ba
commit
789523db5f
|
@ -1346,8 +1346,8 @@ RAW
|
||||||
result = truncate_single_line("#{str}\n#{str}", :length => 10)
|
result = truncate_single_line("#{str}\n#{str}", :length => 10)
|
||||||
assert_equal "01234 0...", result
|
assert_equal "01234 0...", result
|
||||||
assert !result.html_safe?
|
assert !result.html_safe?
|
||||||
result = truncate_single_line("#{str}<&#>\n#{str}\n#{str}", :length => 15)
|
result = truncate_single_line("#{str}<&#>\n#{str}#{str}", :length => 16)
|
||||||
assert_equal "01234<&#> 01...", result
|
assert_equal "01234<&#> 012...", result
|
||||||
assert !result.html_safe?
|
assert !result.html_safe?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue