mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
assert_template_result: Avoid using the BlankFileSystem
Since it doesn't reflect the real liquid usage that we are trying to test against.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user