summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-31 14:57:49 +0900
committergit <svn-admin@ruby-lang.org>2021-08-30 12:39:31 +0900
commitf3ae14cbdeb06bcaf4745bb5d5253b8c62ddb102 (patch)
treeb75272b128969b5e02158acc7394152e7ac76672 /test/irb
parent598f4f42196a51d922f539fa885173c39312b427 (diff)
[ruby/irb] Use capture_output instead of capture_io
https://github.com/ruby/irb/commit/077e4ae7de
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_context.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index 8bc259dbba..1fb1572151 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -221,7 +221,7 @@ module TestIRB
# The default
irb.context.echo = true
irb.context.echo_on_assignment = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -231,7 +231,7 @@ module TestIRB
input.reset
irb.context.echo = true
irb.context.echo_on_assignment = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -241,7 +241,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -251,7 +251,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -269,7 +269,7 @@ module TestIRB
irb.context.echo = true
irb.context.echo_on_assignment = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -278,7 +278,7 @@ module TestIRB
input.reset
irb.context.echo = true
irb.context.echo_on_assignment = :truncate
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -287,7 +287,7 @@ module TestIRB
input.reset
irb.context.echo = true
irb.context.echo_on_assignment = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -296,7 +296,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -305,7 +305,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = :truncate
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -314,7 +314,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -333,7 +333,7 @@ module TestIRB
irb.context.echo = true
irb.context.echo_on_assignment = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -343,7 +343,7 @@ module TestIRB
input.reset
irb.context.echo = true
irb.context.echo_on_assignment = :truncate
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -353,7 +353,7 @@ module TestIRB
input.reset
irb.context.echo = true
irb.context.echo_on_assignment = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -363,7 +363,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -373,7 +373,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = :truncate
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -383,7 +383,7 @@ module TestIRB
input.reset
irb.context.echo = false
irb.context.echo_on_assignment = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -430,7 +430,7 @@ module TestIRB
# The default
irb.context.newline_before_multiline_output = true
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err
@@ -440,7 +440,7 @@ module TestIRB
# No newline before multiline output
input.reset
irb.context.newline_before_multiline_output = false
- out, err = capture_io do
+ out, err = capture_output do
irb.eval_input
end
assert_empty err