Commit e9698dc6 authored by maeda's avatar maeda

"rake test:coverage" fails in Ruby 2.5 and 2.6 (#30967).

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17938 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 78d47775
......@@ -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|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment