# File lib/ruby_indexer/test/configuration_test.rb, line 89deftest_indexables_does_not_include_non_ruby_files_inside_rubylibdirpath = Pathname.new(RbConfig::CONFIG["rubylibdir"]).join("extra_file.txt").to_sFileUtils.touch(path)
indexables = @config.indexablesassert(indexables.none? { |indexable|indexable.full_path==path })
ensureFileUtils.rm(T.must(path))
end
test_indexables_have_expanded_full_paths()
# File lib/ruby_indexer/test/configuration_test.rb, line 23deftest_indexables_have_expanded_full_paths@config.apply_config({ "included_patterns"=> ["**/*.rb"] })
indexables = @config.indexables# All paths should be expandedassert(indexables.none? { |indexable|indexable.full_path.start_with?("lib/") })
end
test_indexables_includes_default_gems()
# File lib/ruby_indexer/test/configuration_test.rb, line 52deftest_indexables_includes_default_gemsindexables = @config.indexables.map(&:full_path)
assert_includes(indexables, "#{RbConfig::CONFIG["rubylibdir"]}/pathname.rb")
assert_includes(indexables, "#{RbConfig::CONFIG["rubylibdir"]}/ipaddr.rb")
assert_includes(indexables, "#{RbConfig::CONFIG["rubylibdir"]}/abbrev.rb")
end
# File lib/ruby_indexer/test/configuration_test.rb, line 99deftest_paths_are_uniqueindexables = @config.indexablesassert_equal(indexables.uniq.length, indexables.length)
end