summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-28 06:21:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-28 06:21:24 +0000
commit0870a3a46e75568b740ad25aa730168be08a48ad (patch)
treed961675b549c253f03f146419930975dee1d4980
parent369ee6e4186bef35576b8dbf50be91da09acdb0a (diff)
downloadredmine-0870a3a46e75568b740ad25aa730168be08a48ad.tar.gz
redmine-0870a3a46e75568b740ad25aa730168be08a48ad.zip
Get a better message when assertion fails.
git-svn-id: http://svn.redmine.org/redmine/trunk@14895 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/issues_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index b52648fcf..8cbd99d64 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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