1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

Merge pull request #614 from mjago/master

Fix call to ERB.new to avoid deprecation warnings.
This commit is contained in:
Mark VanderVoord
2022-05-28 09:17:36 -04:00
committed by GitHub

View File

@@ -345,7 +345,8 @@ class UnityTestRunnerGenerator
def create_run_test(output)
require 'erb'
template = ERB.new(File.read(File.join(__dir__, 'run_test.erb')), nil, '<>')
file = File.read(File.join(__dir__, 'run_test.erb'))
template = ERB.new(file, trim_mode: '<>')
output.puts("\n" + template.result(binding))
end