Skip to content
Snippets Groups Projects

Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty

Merged username-removed-128633 requested to merge 31933-improve-rspec-profiling-enabling into master
Files
2
@@ -32,7 +32,7 @@ end
if Rails.env.test?
RspecProfiling.configure do |config|
if ENV['RSPEC_PROFILING_POSTGRES_URL']
if ENV['RSPEC_PROFILING_POSTGRES_URL'].present?
RspecProfiling::Collectors::PSQL.prepend(RspecProfilingExt::PSQL)
config.collector = RspecProfiling::Collectors::PSQL
end
Loading