summaryrefslogtreecommitdiff
path: root/test/optparse
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-23 14:05:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-23 14:05:07 +0000
commit30d23ec9035ae62d11a7ffe632297206b0d74da5 (patch)
tree67ba57fca1504e79f0f56765985a589a0c28d1b5 /test/optparse
parent8bbdbf9e75ecdfbc8bfaac4c5c2637332c0aa0bf (diff)
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
Diffstat (limited to 'test/optparse')
-rw-r--r--test/optparse/test_autoconf.rb2
-rw-r--r--test/optparse/test_kwargs.rb2
-rw-r--r--test/optparse/test_optparse.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/optparse/test_autoconf.rb b/test/optparse/test_autoconf.rb
index 4b3616f..3be4a4c 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 68fe207..78d7e2e 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 a2540db..e4aeb07 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