From 3b110b18d01fe11d11650a678604e8e9e32820dc Mon Sep 17 00:00:00 2001 From: tompng Date: Mon, 16 Dec 2024 12:11:54 +0900 Subject: [PATCH] Fix test_loaded_gem_types faling in test-bundled-gems Pre-installed Prism does not have `#{prism_gem_dir}/sig` dir. Change test_loaded_gem_types to use signature defined in RBS instead of Prism. --- test/repl_type_completor/test_repl_type_completor.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/repl_type_completor/test_repl_type_completor.rb b/test/repl_type_completor/test_repl_type_completor.rb index 40a9387..2276ddf 100644 --- a/test/repl_type_completor/test_repl_type_completor.rb +++ b/test/repl_type_completor/test_repl_type_completor.rb @@ -254,10 +254,9 @@ def test_doc_namespace_error end def test_loaded_gem_types - result = ReplTypeCompletor.analyze 'Prism.parse("code").', binding: binding + result = ReplTypeCompletor.analyze 'RBS::CLI::LibraryOptions.new.loader.', binding: binding candidtes = result.completion_candidates - assert_includes candidtes, 'success?' - assert_includes candidtes, 'failure?' + assert_includes candidtes, 'add' end def test_info