Skip to content

Commit 9824936

Browse files
authored
Merge pull request #48 from ruby/fix_test_bundled_gems
Fix test_loaded_gem_types faling in test-bundled-gems (take 2)
2 parents b16b0e5 + 9a82e7d commit 9824936

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/repl_type_completor/test_repl_type_completor.rb

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

256256
def test_loaded_gem_types
257-
result = ReplTypeCompletor.analyze 'RBS::CLI::LibraryOptions.new.loader.', binding: binding
257+
# sig directory does not exist when running with test-bundled-gems
258+
omit unless Dir.exist?("#{Gem.loaded_specs['prism'].gem_dir}/sig")
259+
260+
result = ReplTypeCompletor.analyze 'Prism.parse("code").', binding: binding
258261
candidtes = result.completion_candidates
259-
assert_includes candidtes, 'add'
262+
assert_includes candidtes, 'success?'
263+
assert_includes candidtes, 'failure?'
260264
end
261265

262266
def test_info

0 commit comments

Comments
 (0)