mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Call Reline-specific method in helper file
This commit is contained in:
parent
046fd3ac8c
commit
215fd1bf2c
3 changed files with 6 additions and 2 deletions
|
@ -21,4 +21,8 @@ else
|
|||
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
|
||||
Object.const_set(:Readline, Reline)
|
||||
end
|
||||
|
||||
def finish_using_lib_reline
|
||||
Reline.test_reset
|
||||
end
|
||||
end
|
||||
|
|
|
@ -807,7 +807,7 @@ class TestRelineAsReadline < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
Reline.test_reset
|
||||
finish_using_lib_reline
|
||||
end
|
||||
|
||||
def get_default_internal_encoding
|
||||
|
|
|
@ -278,7 +278,7 @@ class TestRelineAsReadlineHistory < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
Reline.test_reset
|
||||
finish_using_lib_reline
|
||||
end
|
||||
|
||||
def get_default_internal_encoding
|
||||
|
|
Loading…
Add table
Reference in a new issue