Skip to content

Commit

Permalink
Remove pp-specific stub from TestColor
Browse files Browse the repository at this point in the history
because it was for TestColorPrinter
  • Loading branch information
k0kubun committed Jan 20, 2021
1 parent eea9c16 commit 7569206
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/irb/test_color.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 7569206

Please sign in to comment.