Skip to content

Commit

Permalink
Ensure that apply_config recomputes @fnmatch_exclude_pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
natematykiewicz committed May 30, 2024
1 parent 228b84f commit 68bb453
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ruby_indexer/test/configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def test_exclude_pattern
@config.instance_variable_get(:@fnmatch_exclude_pattern),
"#{Dir.pwd}/{**/tmp/**/*,**/node_modules/**/*,vendor/bundle/**/*}",
)

@config.apply_config({ "excluded_patterns" => ["**/test/fixtures/**/*"] })
assert_equal(
@config.instance_variable_get(:@fnmatch_exclude_pattern),
"#{Dir.pwd}/{**/tmp/**/*,**/node_modules/**/*,vendor/bundle/**/*,**/test/fixtures/**/*}",
)
end

def test_indexables_includes_default_gems
Expand Down

0 comments on commit 68bb453

Please sign in to comment.