@@ -24,7 +24,7 @@ class RelineInputMethodTest < InputMethodTest
2424 def test_initialization
2525 Reline . completion_proc = nil
2626 Reline . dig_perfect_match_proc = nil
27- IRB ::RelineInputMethod . new
27+ IRB ::RelineInputMethod . new ( IRB :: RegexpCompletor . new )
2828
2929 assert_nil Reline . completion_append_character
3030 assert_equal '' , Reline . completer_quote_characters
@@ -40,7 +40,7 @@ def test_initialization_without_use_autocomplete
4040
4141 IRB . conf [ :USE_AUTOCOMPLETE ] = false
4242
43- IRB ::RelineInputMethod . new
43+ IRB ::RelineInputMethod . new ( IRB :: RegexpCompletor . new )
4444
4545 refute Reline . autocompletion
4646 assert_equal empty_proc , Reline . dialog_proc ( :show_doc ) . dialog_proc
@@ -55,7 +55,7 @@ def test_initialization_with_use_autocomplete
5555
5656 IRB . conf [ :USE_AUTOCOMPLETE ] = true
5757
58- IRB ::RelineInputMethod . new
58+ IRB ::RelineInputMethod . new ( IRB :: RegexpCompletor . new )
5959
6060 assert Reline . autocompletion
6161 assert_not_equal empty_proc , Reline . dialog_proc ( :show_doc ) . dialog_proc
@@ -71,7 +71,7 @@ def test_initialization_with_use_autocomplete_but_without_rdoc
7171 IRB . conf [ :USE_AUTOCOMPLETE ] = true
7272
7373 without_rdoc do
74- IRB ::RelineInputMethod . new
74+ IRB ::RelineInputMethod . new ( IRB :: RegexpCompletor . new )
7575 end
7676
7777 assert Reline . autocompletion
@@ -89,7 +89,7 @@ def setup
8989 end
9090
9191 def display_document ( target , bind )
92- input_method = IRB ::RelineInputMethod . new
92+ input_method = IRB ::RelineInputMethod . new ( IRB :: RegexpCompletor . new )
9393 input_method . instance_variable_set ( :@completion_params , [ target , '' , '' , bind ] )
9494 input_method . display_document ( target , driver : @driver )
9595 end
0 commit comments