test/integration/assign_test.rb in liquid-3.0.6 vs test/integration/assign_test.rb in liquid-4.0.0.rc1
- old
+ new
@@ -13,27 +13,27 @@
assert_equal "Print this-thing", rendered.strip
end
def test_assigned_variable
assert_template_result('.foo.',
- '{% assign foo = values %}.{{ foo[0] }}.',
- 'values' => %w{foo bar baz})
+ '{% assign foo = values %}.{{ foo[0] }}.',
+ 'values' => %w(foo bar baz))
assert_template_result('.bar.',
- '{% assign foo = values %}.{{ foo[1] }}.',
- 'values' => %w{foo bar baz})
+ '{% assign foo = values %}.{{ foo[1] }}.',
+ 'values' => %w(foo bar baz))
end
def test_assign_with_filter
assert_template_result('.bar.',
- '{% assign foo = values | split: "," %}.{{ foo[1] }}.',
- 'values' => "foo,bar,baz")
+ '{% assign foo = values | split: "," %}.{{ foo[1] }}.',
+ 'values' => "foo,bar,baz")
end
def test_assign_syntax_error
assert_match_syntax_error(/assign/,
- '{% assign foo not values %}.',
- 'values' => "foo,bar,baz")
+ '{% assign foo not values %}.',
+ 'values' => "foo,bar,baz")
end
def test_assign_uses_error_mode
with_error_mode(:strict) do
assert_raises(SyntaxError) do