Sha256: 2bc2ad7f53ec3f0f325cd995ff9fc10543fe9ae6a8d29dc4ac2255f3d3b1337a
Contents?: true
Size: 910 Bytes
Versions: 1
Compression:
Stored size: 910 Bytes
Contents
# typed: true # frozen_string_literal: true require "test_helper" module RubyIndexer class ConfigurationTest < Minitest::Test def setup @config = Configuration.new end def test_load_configuration_executes_configure_block @config.load_config files_to_index = @config.files_to_index assert(files_to_index.none? { |path| path.include?("test/fixtures") }) assert(files_to_index.none? { |path| path.include?("minitest-reporters") }) end def test_paths_are_unique @config.load_config files_to_index = @config.files_to_index assert_equal(files_to_index.uniq.length, files_to_index.length) end def test_configuration_raises_for_unknown_keys Psych::Nodes::Document.any_instance.expects(:to_ruby).returns({ "unknown_config" => 123 }) assert_raises(ArgumentError) do @config.load_config end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lsp-0.8.1 | lib/ruby_indexer/test/configuration_test.rb |