diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 044d852a327111..5b63e56800a33e 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -398,8 +398,8 @@ def test_show_source ]) IRB.init_config(nil) workspace = IRB::WorkSpace.new(self) - irb = IRB::Irb.new(workspace, input) IRB.conf[:VERBOSE] = false + irb = IRB::Irb.new(workspace, input) IRB.conf[:MAIN_CONTEXT] = irb.context irb.context.return_format = "=> %s\n" out, err = capture_output do