diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index dae0f8f6e4..f59a23a99d 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -93,7 +93,7 @@ module TestIRB def test_prompt_n_deprecation irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new)) - out, err = capture_output do + _, err = capture_output do irb.context.prompt_n = "foo" irb.context.prompt_n end diff --git a/test/irb/test_irb.rb b/test/irb/test_irb.rb index c685912093..08fe41f5e7 100644 --- a/test/irb/test_irb.rb +++ b/test/irb/test_irb.rb @@ -94,8 +94,8 @@ module TestIRB end def setup - @irb = build_irb save_encodings + @irb = build_irb end def teardown