提交 73c991c4 编写于 作者: Y yuuji.yaginuma

Fix "warning: assigned but unused variable - message"

Ruby 2.5 warns about this. Ref: https://travis-ci.org/rails/rails/jobs/286338999
上级 68a2888e
......@@ -82,9 +82,8 @@ def test_rc_whitespace_separated
file.puts "--hello --world"
file.flush
message = nil
scrubber = Class.new(ARGVScrubber) {
define_method(:puts) { |msg| message = msg }
define_method(:puts) { |msg| }
}.new ["new", "--rc=#{file.path}"]
args = scrubber.prepare!
assert_equal ["--hello", "--world"], args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册