diff options
author | Stan Hu <stanhu@gmail.com> | 2017-05-19 17:17:47 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-05-19 17:17:47 +0300 |
commit | 9d29eb7e292067fb980b4ca97fc6c3edac1dccec (patch) | |
tree | d9e1d2fccab2dab90d1fed9d47a30c402921e1ca /config | |
parent | 9bf95ddd83fd3ef1216952692ff789d7c5688578 (diff) | |
parent | 29c268ee4e21470cb7bbf13ce16b527b516225cb (diff) |
Merge branch '31933-improve-rspec-profiling-enabling' into 'master'
Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty
Closes #31933
See merge request !11543
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/rspec_profiling.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rspec_profiling.rb b/config/initializers/rspec_profiling.rb index a7efd74f09e..16b9d5b15e5 100644 --- a/config/initializers/rspec_profiling.rb +++ b/config/initializers/rspec_profiling.rb @@ -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 |