1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Remove pp-specific stub from TestColor

because it was for TestColorPrinter

https://github.com/ruby/irb/commit/7569206fd4
This commit is contained in:
Takashi Kokubun 2021-01-20 01:10:00 -08:00 committed by git
parent cea6814c2c
commit f4a556f4f1

View file

@ -17,19 +17,6 @@ module TestIRB
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 = {