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.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/irb/test_debug_cmd.rb b/test/irb/test_debug_cmd.rb
index d669c174e6..53d40f7297 100644
--- a/test/irb/test_debug_cmd.rb
+++ b/test/irb/test_debug_cmd.rb
@@ -346,9 +346,11 @@ module TestIRB
end
def test_show_cmds_display_different_content_when_debugger_is_enabled
+ write_rc <<~RUBY
+ IRB.conf[:USE_PAGER] = false
+ RUBY
+
write_ruby <<~'ruby'
- # disable pager
- STDIN.singleton_class.define_method(:tty?) { false }
binding.irb
ruby