From 7569206fd42d734e19763568c15d0af2087fe431 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 20 Jan 2021 01:10:00 -0800 Subject: [PATCH] Remove pp-specific stub from TestColor because it was for TestColorPrinter --- test/irb/test_color.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index ea689b3e2..997600812 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -17,19 +17,6 @@ class TestColor < Test::Unit::TestCase MAGENTA = "\e[35m" CYAN = "\e[36m" - def setup - @get_screen_size = Reline.method(:get_screen_size) - Reline.instance_eval { undef :get_screen_size } - def Reline.get_screen_size - [36, 80] - end - end - - def teardown - Reline.instance_eval { undef :get_screen_size } - Reline.define_singleton_method(:get_screen_size, @get_screen_size) - end - def test_colorize_code # Common behaviors. Warn parser error, but do not warn compile error. tests = {