From 50ac6d6f32fd47f52c0b307a665c37da13643a02 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Oct 2017 14:05:07 +0000 Subject: multiple arguments to write Make write methods of IO-like objects accept multiple arguments, as well as IO#write. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/optparse/test_autoconf.rb | 2 +- test/optparse/test_kwargs.rb | 2 +- test/optparse/test_optparse.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/optparse') diff --git a/test/optparse/test_autoconf.rb b/test/optparse/test_autoconf.rb index 4b3616f816..3be4a4c598 100644 --- a/test/optparse/test_autoconf.rb +++ b/test/optparse/test_autoconf.rb @@ -14,7 +14,7 @@ class TestOptionParser::AutoConf < Test::Unit::TestCase end class DummyOutput < String - alias write << + alias write concat end def no_error(*args) $stderr, stderr = DummyOutput.new, $stderr diff --git a/test/optparse/test_kwargs.rb b/test/optparse/test_kwargs.rb index 68fe207a2c..78d7e2ee9c 100644 --- a/test/optparse/test_kwargs.rb +++ b/test/optparse/test_kwargs.rb @@ -14,7 +14,7 @@ class TestOptionParser::KwArg < Test::Unit::TestCase end class DummyOutput < String - alias write << + alias write concat end def assert_no_error(*args) $stderr, stderr = DummyOutput.new, $stderr diff --git a/test/optparse/test_optparse.rb b/test/optparse/test_optparse.rb index a2540db241..e4aeb07aac 100644 --- a/test/optparse/test_optparse.rb +++ b/test/optparse/test_optparse.rb @@ -9,7 +9,7 @@ class TestOptionParser < Test::Unit::TestCase end class DummyOutput < String - alias write << + alias write concat end def assert_no_error(*args) $stderr, stderr = DummyOutput.new, $stderr -- cgit v1.2.3