summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-02-08 11:08:57 +0900
committergit <svn-admin@ruby-lang.org>2021-02-11 20:31:29 +0900
commitb2d2d25b94fd9699408759f5b8b394f54f57ef89 (patch)
tree24f1c358dfff388a15626444b7ce2ab2414beb88 /test/irb
parentd77a42fbfd60f4e4f49f1feb56e089494fbf3572 (diff)
[ruby/irb] Suppress colorize on Windows tests
https://github.com/ruby/irb/commit/5be9354cf9
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_workspace.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/irb/test_workspace.rb b/test/irb/test_workspace.rb
index 15c7731..f028fc3 100644
--- a/test/irb/test_workspace.rb
+++ b/test/irb/test_workspace.rb
@@ -9,6 +9,7 @@ require 'irb/color'
module TestIRB
class TestWorkSpace < Test::Unit::TestCase
def test_code_around_binding
+ IRB.conf[:USE_COLORIZE] = false
Tempfile.create('irb') do |f|
code = <<~RUBY
# 1
@@ -33,6 +34,8 @@ module TestIRB
EOS
end
+ ensure
+ IRB.conf.delete(:USE_COLORIZE)
end
def test_code_around_binding_with_existing_unreadable_file
@@ -52,6 +55,7 @@ module TestIRB
end
def test_code_around_binding_with_script_lines__
+ IRB.conf[:USE_COLORIZE] = false
with_script_lines do |script_lines|
Tempfile.create('irb') do |f|
code = "IRB::WorkSpace.new(binding)\n"
@@ -67,6 +71,8 @@ module TestIRB
EOS
end
end
+ ensure
+ IRB.conf.delete(:USE_COLORIZE)
end
def test_code_around_binding_on_irb