summaryrefslogtreecommitdiff
path: root/test/erb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-12 19:59:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-12 19:59:22 +0000
commit8326a747f991be50b3cf0ab9eab8c091f904e14c (patch)
treede3932066b38a78573050f6c6143e9c330d6954d /test/erb
parent1137a46a81eda5772a8d69c24f5be4ef0a519174 (diff)
erb: suppress warnings
* bin/erb (ERB::Main#run): get rid of shadowing outer local variables. [ruby-core:65772] [Feature #10395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/erb')
-rw-r--r--test/erb/test_erb_command.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/erb/test_erb_command.rb b/test/erb/test_erb_command.rb
index a21feb004d..abc8fdbe25 100644
--- a/test/erb/test_erb_command.rb
+++ b/test/erb/test_erb_command.rb
@@ -3,7 +3,8 @@ require 'test/unit'
class TestErbCommand < Test::Unit::TestCase
def test_var
- assert_in_out_err([File.expand_path("../../../bin/erb", __FILE__),
+ assert_in_out_err(["-w",
+ File.expand_path("../../../bin/erb", __FILE__),
"var=hoge"],
"<%=var%>", ["hoge"])
end