Apply simple rubocop fixes

This commit is contained in:
Mike Angell
2019-08-31 21:58:33 +10:00
parent ddb45cd658
commit 799da202df
73 changed files with 341 additions and 683 deletions
+1 -1
View File
@@ -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')