summaryrefslogtreecommitdiff
path: root/test/irb/test_irb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/irb/test_irb.rb')
-rw-r--r--test/irb/test_irb.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/irb/test_irb.rb b/test/irb/test_irb.rb
index b32e857c1e..e6eb3d5da1 100644
--- a/test/irb/test_irb.rb
+++ b/test/irb/test_irb.rb
@@ -7,8 +7,7 @@ module TestIRB
class InputTest < IntegrationTestCase
def test_symbol_aliases_are_handled_correctly
write_rc <<~RUBY
- # disable pager
- STDIN.singleton_class.define_method(:tty?) { false }
+ IRB.conf[:USE_PAGER] = false
RUBY
write_ruby <<~'RUBY'
@@ -27,8 +26,7 @@ module TestIRB
def test_symbol_aliases_are_handled_correctly_with_singleline_mode
write_rc <<~RUBY
- # disable pager
- STDIN.singleton_class.define_method(:tty?) { false }
+ IRB.conf[:USE_PAGER] = false
IRB.conf[:USE_SINGLELINE] = true
RUBY