Update rubocop-shopify (2.7.0 -> 2.12.0) (#1687)

This commit is contained in:
Guilherme Carreiro
2023-02-15 08:40:59 +01:00
committed by GitHub
parent abef59d129
commit 9ab688eada
38 changed files with 720 additions and 382 deletions
+6 -4
View File
@@ -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))