diff options
author | Nick Thomas <nick@gitlab.com> | 2017-01-27 00:31:43 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-01-27 15:41:16 +0300 |
commit | f83b8bd42c2a82b3ef9a8d93621b3955f0a8d0ca (patch) | |
tree | 50f6d5128a2941f019e6e19cee47efe8d3ebce9b /spec/spec_helper.rb | |
parent | 9d7999242db6ab641df1351bae7cfd5766cfeaa3 (diff) |
Add the rspec_profiling gem and documentation to the GitLab development environment
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e160c11111b..ab38dac65c5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,6 +9,10 @@ require 'rspec/rails' require 'shoulda/matchers' require 'rspec/retry' +if ENV['RSPEC_PROFILING_POSTGRES_URL'] || ENV['RSPEC_PROFILING'] + require 'rspec_profiling/rspec' +end + if ENV['CI'] && !ENV['NO_KNAPSACK'] require 'knapsack' Knapsack::Adapters::RSpecAdapter.bind |