Profiling tools configuration improvement (#25383)
This commit is contained in:
parent
6f1fa1364f
commit
7581b1ff96
4 changed files with 16 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue