Skip to content

Commit cda4adb

Browse files
authored
Merge pull request #168 from Shopify/pz-kw-args
Fix test using Ruby 2.7 positional arguments
2 parents 44da054 + 0781eac commit cda4adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/block_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def read_template_file(template_path)
115115
def test_include_partial_with_syntax_error
116116
old_file_system = Liquid::Template.file_system
117117
begin
118-
Liquid::Template.file_system = StubFileSystem.new(
118+
Liquid::Template.file_system = StubFileSystem.new({
119119
"invalid" => "{% foo %}",
120120
"valid" => '{% include "nested" %}',
121121
"nested" => "valid",
122-
)
122+
})
123123

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

0 commit comments

Comments
 (0)