diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index dae0f8f6e..f59a23a99 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -93,7 +93,7 @@ def test_eval_input_raise2x 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 c68591209..08fe41f5e 100644 --- a/test/irb/test_irb.rb +++ b/test/irb/test_irb.rb @@ -94,8 +94,8 @@ def dynamic_prompt(&block) end def setup - @irb = build_irb save_encodings + @irb = build_irb end def teardown