From f484b868d08c8153fc397f28e7be193f2dcdf3ff Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Fri, 28 Oct 2022 13:55:33 -0400 Subject: [PATCH] assert_template_result: Avoid using the BlankFileSystem Since it doesn't reflect the real liquid usage that we are trying to test against. --- 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..2caa7b32 100755 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -42,7 +42,7 @@ module Minitest message: nil, partials: nil, error_mode: nil, render_errors: false ) template = Liquid::Template.parse(template, line_numbers: true, error_mode: error_mode&.to_sym) - file_system = StubFileSystem.new(partials) if partials + file_system = StubFileSystem.new(partials || {}) registers = Liquid::Registers.new(file_system: file_system) context = Liquid::Context.build(environments: assigns, rethrow_errors: !render_errors, registers: registers) output = template.render(context)