0
0
Fork 0

Profiling tools configuration improvement (#25383)

This commit is contained in:
Matt Jankowski 2023-07-28 17:16:23 -04:00 committed by GitHub
parent 6f1fa1364f
commit 7581b1ff96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -147,6 +147,14 @@ RSpec.configure do |config|
Rails.cache.clear
redis.del(redis.keys)
end
# Assign types based on dir name for non-inferred types
config.define_derived_metadata(file_path: %r{/spec/}) do |metadata|
unless metadata.key?(:type)
match = metadata[:location].match(%r{/spec/([^/]+)/})
metadata[:type] = match[1].singularize.to_sym
end
end
end
RSpec::Sidekiq.configure do |config|