diff options
author | Rémy Coutable <remy@rymai.me> | 2017-05-19 12:15:49 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-05-19 12:15:49 +0200 |
commit | 29c268ee4e21470cb7bbf13ce16b527b516225cb (patch) | |
tree | e4641d285b37f9570600389d3ea03a3f2094b46f /config | |
parent | 0bce9872b4c82ed172e2d811ab951ab5b034901f (diff) | |
download | gitlab-ce-29c268ee4e21470cb7bbf13ce16b527b516225cb.tar.gz |
Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty31933-improve-rspec-profiling-enabling
Signed-off-by: Rémy Coutable <remy@rymai.me>
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 |