From 24c30add5c07be8eba7178e898390a8aecc796d3 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 9 Mar 2019 23:28:55 +0000 Subject: "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 --- test/coverage/html_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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| -- cgit v1.2.3