diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-30 19:54:03 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-21 13:44:24 +0300 |
commit | 8cc7a2dd6f201019d6848aade74d938db356cc39 (patch) | |
tree | 1e91ae5415fdef0086a8f577bea705b46e11aac5 /features/support/env.rb | |
parent | 2d3978842cb1742d1c974fa57c29b6508a365c24 (diff) |
Store all simplecov configuration in one file
Diffstat (limited to 'features/support/env.rb')
-rw-r--r-- | features/support/env.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index c1cfabd0d6a..1c39367ad42 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -1,14 +1,4 @@ -if ENV['SIMPLECOV'] - require 'simplecov' - - SimpleCov.start :rails do - if ENV['CI_BUILD_NAME'] - coverage_dir "coverage/#{ENV['CI_BUILD_NAME']}" - command_name ENV['CI_BUILD_NAME'] - merge_timeout 7200 - end - end -end +require_relative Rails.root.join('spec', 'simplecov_env') ENV['RAILS_ENV'] = 'test' require './config/environment' |