mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-31 12:49:38 +00:00
Get a better message when assertion fails.
git-svn-id: http://svn.redmine.org/redmine/trunk@14895 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
369ee6e418
commit
0870a3a46e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user