Skip to content

Commit

Permalink
Fix test using Ruby 2.7 positional arguments
Browse files Browse the repository at this point in the history
This was originally fixed in 12537f6
but was accidentally undone in d28a941.
  • Loading branch information
peterzhu2118 committed Feb 1, 2022
1 parent 44da054 commit 0781eac
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 0781eac

Please sign in to comment.