Skip to content

Commit

Permalink
Merge pull request #168 from Shopify/pz-kw-args
Browse files Browse the repository at this point in the history
Fix test using Ruby 2.7 positional arguments
  • Loading branch information
peterzhu2118 authored Feb 1, 2022
2 parents 44da054 + 0781eac commit cda4adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/block_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ def read_template_file(template_path)
def test_include_partial_with_syntax_error
old_file_system = Liquid::Template.file_system
begin
Liquid::Template.file_system = StubFileSystem.new(
Liquid::Template.file_system = StubFileSystem.new({
"invalid" => "{% foo %}",
"valid" => '{% include "nested" %}',
"nested" => "valid",
)
})

template = Liquid::Template.parse("{% include 'invalid' %},{% include 'valid' %}")
assert_equal("Liquid syntax error: Unknown tag 'foo',valid", template.render)
Expand Down

0 comments on commit cda4adb

Please sign in to comment.