diff options
Diffstat (limited to 'test/irb/yamatanooroti/test_rendering.rb')
-rw-r--r-- | test/irb/yamatanooroti/test_rendering.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/irb/yamatanooroti/test_rendering.rb b/test/irb/yamatanooroti/test_rendering.rb index b1a7a4087d..96051ee433 100644 --- a/test/irb/yamatanooroti/test_rendering.rb +++ b/test/irb/yamatanooroti/test_rendering.rb @@ -203,6 +203,21 @@ class IRB::RenderingTest < Yamatanooroti::TestCase EOC end + def test_autocomplete_with_multiple_doc_namespaces + write_irbrc <<~'LINES' + puts 'start IRB' + LINES + start_terminal(4, 40, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB') + write("{}.__id_") + write("\C-i") + close + assert_screen(<<~EOC) + start IRB + irb(main):001> {}.__id__ + }.__id__ + EOC + end + def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_right rdoc_dir = File.join(@tmpdir, 'rdoc') system("bundle exec rdoc -r -o #{rdoc_dir}") |