summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-09 23:28:55 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-09 23:28:55 +0000
commit24c30add5c07be8eba7178e898390a8aecc796d3 (patch)
treee232d781dec031c8613800ee27cb5b1a9ed71cd8
parent1fbb2fa33aa1d4b257a759a35cb38353cdac4e9e (diff)
downloadredmine-24c30add5c07be8eba7178e898390a8aecc796d3.tar.gz
redmine-24c30add5c07be8eba7178e898390a8aecc796d3.zip
"rake test:coverage" fails in Ruby 2.5 and 2.6 (#30967).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17938 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/coverage/html_formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/coverage/html_formatter.rb b/test/coverage/html_formatter.rb
index 99b101afa..e8564a816 100644
--- a/test/coverage/html_formatter.rb
+++ b/test/coverage/html_formatter.rb
@@ -24,7 +24,7 @@ module Redmine
class HtmlFormatter
def format(result)
File.open(File.join(output_path, "index.html"), "w") do |file|
- file.puts template('index').result(binding)
+ file.puts template('index').result(binding).force_encoding('utf-8')
end
result.source_files.each do |source_file|
File.open(File.join(output_path, source_file_result(source_file)), "w") do |file|