GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

Commit 19dd5f3d authored by marutosijp's avatar marutosijp

prevent IssuesControllerTest#test_index_csv_big_5 fails randomly

git-svn-id: https://svn.redmine.org/redmine/trunk@14235 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e1a06e45
......@@ -537,10 +537,10 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n")
header = lines[0]
status = "\xaa\xac\xbaA".force_encoding('Big5')
assert header.include?(status)
issue_line = lines.find {|l| l =~ /^#{issue.id},/}
s1 = "\xaa\xac\xbaA".force_encoding('Big5')
assert_include s1, header
assert_include str_big5, issue_line
assert issue_line.include?(str_big5)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment