Commit b28afa54 authored by jplang's avatar jplang

Get a better message when assertion fails.

git-svn-id: https://svn.redmine.org/redmine/trunk@14895 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 34ee5c01
......@@ -538,9 +538,9 @@ class IssuesControllerTest < ActionController::TestCase
lines = @response.body.chomp.split("\n")
header = lines[0]
status = "\xaa\xac\xbaA".force_encoding('Big5')
assert header.include?(status)
assert_include status, header
issue_line = lines.find {|l| l =~ /^#{issue.id},/}
assert issue_line.include?(str_big5)
assert_include str_big5, issue_line
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