summaryrefslogtreecommitdiff
path: root/test/irb/test_debug_cmd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/irb/test_debug_cmd.rb')
-rw-r--r--test/irb/test_debug_cmd.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/irb/test_debug_cmd.rb b/test/irb/test_debug_cmd.rb
index 4d1bb6d6b9..80331ea0d4 100644
--- a/test/irb/test_debug_cmd.rb
+++ b/test/irb/test_debug_cmd.rb
@@ -17,7 +17,7 @@ module TestIRB
class DebugCommandTestCase < TestCase
IRB_AND_DEBUGGER_OPTIONS = {
- "RUBY_DEBUG_NO_RELINE" => "true", "NO_COLOR" => "true", "RUBY_DEBUG_HISTORY_FILE" => ''
+ "NO_COLOR" => "true", "RUBY_DEBUG_HISTORY_FILE" => ''
}
def setup
@@ -211,7 +211,10 @@ module TestIRB
cmd = [EnvUtil.rubybin, "-I", LIB, @ruby_file.to_path]
tmp_dir = Dir.mktmpdir
rc_file = File.open(File.join(tmp_dir, ".irbrc"), "w+")
- rc_file.write("IRB.conf[:USE_SINGLELINE] = true")
+ rc_file.write(<<~RUBY)
+ IRB.conf[:USE_SINGLELINE] = true
+ Reline.const_set(:IOGate, Reline::GeneralIO)
+ RUBY
rc_file.close
@commands = []