mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Apply simple rubocop fixes
This commit is contained in:
@@ -76,7 +76,7 @@ class VariableTest < Minitest::Test
|
||||
|
||||
def test_hash_with_default_proc
|
||||
template = Template.parse(%(Hello {{ test }}))
|
||||
assigns = Hash.new { |h, k| raise "Unknown variable '#{k}'" }
|
||||
assigns = Hash.new { |_h, k| raise "Unknown variable '#{k}'" }
|
||||
assigns['test'] = 'Tobi'
|
||||
assert_equal 'Hello Tobi', template.render!(assigns)
|
||||
assigns.delete('test')
|
||||
|
||||
Reference in New Issue
Block a user