From a39422feac532c245ceb9d6a15b8ac91d3d73431 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Fri, 21 Oct 2022 11:45:29 -0400 Subject: [PATCH] Use static environment assert_template_result input values To match how we use liquid in practice --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 23f0a42a..052f7091 100755 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -44,7 +44,7 @@ module Minitest template = Liquid::Template.parse(template, line_numbers: true, error_mode: error_mode&.to_sym) file_system = StubFileSystem.new(partials) if partials registers = Liquid::Registers.new(file_system: file_system) - context = Liquid::Context.build(environments: assigns, rethrow_errors: !render_errors, registers: registers) + context = Liquid::Context.build(static_environments: assigns, rethrow_errors: !render_errors, registers: registers) output = template.render(context) assert_equal(expected, output, message) end