-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform initial indexing and synchronization
- Loading branch information
Showing
12 changed files
with
232 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
excluded_patterns: | ||
- "**/test/fixtures/**/*.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# typed: true | ||
# frozen_string_literal: true | ||
|
||
require "test_helper" | ||
|
||
module RubyIndexer | ||
class RubyIndexerTest < Minitest::Test | ||
def test_load_configuration_executes_configure_block | ||
RubyIndexer.load_configuration_file | ||
files_to_index = RubyIndexer.configuration.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 | ||
RubyIndexer.load_configuration_file | ||
files_to_index = RubyIndexer.configuration.files_to_index | ||
|
||
assert_equal(files_to_index.uniq.length, files_to_index.length) | ||
end | ||
|
||
def test_configuration_raises_for_unknown_keys | ||
assert_raises(ArgumentError) do | ||
RubyIndexer.configuration.apply_config({ "unknown" => 123 }) | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.