mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Update rubocop-shopify (2.7.0 -> 2.12.0) (#1687)
This commit is contained in:
@@ -93,10 +93,12 @@ class TemplateTest < Minitest::Test
|
||||
|
||||
def test_lambda_is_called_once_from_custom_assigns_over_multiple_parses_and_renders
|
||||
t = Template.new
|
||||
assigns = { 'number' => -> {
|
||||
@global ||= 0
|
||||
@global += 1
|
||||
} }
|
||||
assigns = {
|
||||
'number' => -> {
|
||||
@global ||= 0
|
||||
@global += 1
|
||||
},
|
||||
}
|
||||
assert_equal('1', t.parse("{{number}}").render!(assigns))
|
||||
assert_equal('1', t.parse("{{number}}").render!(assigns))
|
||||
assert_equal('1', t.render!(assigns))
|
||||
|
||||
Reference in New Issue
Block a user