diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-05-03 09:49:45 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-05-03 09:49:45 +0300 |
commit | b4bc68211bbf87015f31590a30dd04bfde63ad8e (patch) | |
tree | 29523857103edc48b20ccd995890f05e52693539 /spec | |
parent | 61ad5abc4c96947cd53826c7b4a8d3e572c2595b (diff) |
Show full Rspec backtrace only in CI
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fbc5fcea7b9..9266bee34d6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -53,7 +53,7 @@ RSpec.configure do |config| config.display_try_failure_messages = true config.infer_spec_type_from_file_location! - config.full_backtrace = true + config.full_backtrace = !!ENV['CI'] config.define_derived_metadata(file_path: %r{/spec/}) do |metadata| location = metadata[:location] |