[ruby/irb] Use autocomplete with show doc dialog that uses Reline::Key in tests

142fc53e9c
This commit is contained in:
aycabta 2021-09-04 02:22:19 +09:00 committed by git
parent b7e2f7759d
commit f6bc4b9b97

View file

@ -26,10 +26,8 @@ begin
end
def test_launch
# TODO Remove the disabling autocomplete after new versoin of reline gem is released.
write_irbrc <<~'LINES'
puts 'start IRB'
IRB.conf[:USE_AUTOCOMPLETE] = false
LINES
start_terminal(25, 80, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
write(<<~EOC)
@ -47,7 +45,6 @@ begin
def test_multiline_paste
write_irbrc <<~'LINES'
puts 'start IRB'
IRB.conf[:USE_AUTOCOMPLETE] = false
LINES
start_terminal(25, 80, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
write(<<~EOC)
@ -87,7 +84,6 @@ begin
def test_evaluate_each_toplevel_statement_by_multiline_paste
write_irbrc <<~'LINES'
puts 'start IRB'
IRB.conf[:USE_AUTOCOMPLETE] = false
LINES
start_terminal(40, 80, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
write(<<~EOC)