ruby-changes:46841
From: k0kubun <ko1@a...>
Date: Mon, 29 May 2017 19:22:51 +0900 (JST)
Subject: [ruby-changes:46841] k0kubun:r58956 (trunk): test/erb/test_erb.rb: Fix unused variable warning
k0kubun 2017-05-29 19:22:47 +0900 (Mon, 29 May 2017) New Revision: 58956 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58956 Log: test/erb/test_erb.rb: Fix unused variable warning ruby/test/erb/test_erb.rb:575: warning: assigned but unused variable - foo Modified files: trunk/test/erb/test_erb.rb Index: test/erb/test_erb.rb =================================================================== --- test/erb/test_erb.rb (revision 58955) +++ test/erb/test_erb.rb (revision 58956) @@ -574,6 +574,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/erb/test_erb.rb#L574 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/