1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-03 06:09:41 +00:00

"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
This commit is contained in:
Go MAEDA 2019-03-09 23:28:55 +00:00
parent 1fbb2fa33a
commit 24c30add5c

View File

@ -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|