Skip to content

Commit 0781eac

Browse files
committed
Fix test using Ruby 2.7 positional arguments
This was originally fixed in 12537f6 but was accidentally undone in d28a941.
1 parent 44da054 commit 0781eac

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)