Skip to content

Commit 3b110b1

Browse files
committed
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.
1 parent 3027fd1 commit 3b110b1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/repl_type_completor/test_repl_type_completor.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ def test_doc_namespace_error
254254
end
255255

256256
def test_loaded_gem_types
257-
result = ReplTypeCompletor.analyze 'Prism.parse("code").', binding: binding
257+
result = ReplTypeCompletor.analyze 'RBS::CLI::LibraryOptions.new.loader.', binding: binding
258258
candidtes = result.completion_candidates
259-
assert_includes candidtes, 'success?'
260-
assert_includes candidtes, 'failure?'
259+
assert_includes candidtes, 'add'
261260
end
262261

263262
def test_info

0 commit comments

Comments
 (0)