mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/erb/test_erb.rb: Fix unused variable warning
ruby/test/erb/test_erb.rb:575: warning: assigned but unused variable - foo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e07bff3ce3
commit
26e32b7d65
1 changed files with 1 additions and 0 deletions
|
@ -574,6 +574,7 @@ EOS
|
|||
erb = @erb.new("<%= foo %>")
|
||||
foo = 1
|
||||
assert_raise(NameError) { erb.result_with_hash({}) }
|
||||
assert_equal("1", erb.result_with_hash(foo: foo))
|
||||
end
|
||||
|
||||
def test_result_with_hash_does_not_modify_caller_binding
|
||||
|
|
Loading…
Reference in a new issue