summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-05-01 16:30:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-05-01 16:30:36 +0000
commit3568b3729c6bfff9d2e1e1767d7807393fbbbb7f (patch)
treecd3772ecf31895407ac977ab61cbc72549c0eafe
parent2f67c8e214e60dc951f784803f5386a786be6e0a (diff)
downloadredmine-3568b3729c6bfff9d2e1e1767d7807393fbbbb7f.tar.gz
redmine-3568b3729c6bfff9d2e1e1767d7807393fbbbb7f.zip
prevent IssuesControllerTest#test_index_csv_big_5 fails randomly
git-svn-id: http://svn.redmine.org/redmine/trunk@14235 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/issues_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 28d4eef14..c3ebaf4a3 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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