Skip to content

Commit

Permalink
Fix test_loaded_gem_types faling in test-bundled-gems
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tompng committed Dec 16, 2024
1 parent 3027fd1 commit 3b110b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/repl_type_completor/test_repl_type_completor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b110b1

Please sign in to comment.