Call Reline-specific method in helper file

This commit is contained in:
aycabta 2021-06-21 22:24:31 +09:00
parent 046fd3ac8c
commit 215fd1bf2c
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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