diff options
| author | Robert | 2017-05-16 12:29:18 +0200 | 
|---|---|---|
| committer | Robert | 2017-05-16 12:29:18 +0200 | 
| commit | 3f034a0ca9709e10431bbcdb60a79b605d9bc4e7 (patch) | |
| tree | c476cecc4a5ade6599386b15344e166756edccef | |
| parent | 73a8df07f7e05448d1dd9969539601b128840fb2 (diff) | |
| download | chouette-core-3f034a0ca9709e10431bbcdb60a79b605d9bc4e7.tar.bz2 | |
allow disabling RCOV for faster local tests: NO_RCOV=1 bundle exec rake spec
| -rw-r--r-- | spec/spec_helper.rb | 20 | 
1 files changed, 11 insertions, 9 deletions
| diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c99cede55..6176babea 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,14 +1,16 @@  # This file is copied to spec/ when you run 'rails generate rspec:install'  require 'simplecov' -if ENV['JOB_NAME'] -  require 'simplecov-rcov' -  SimpleCov.formatters = [ -    SimpleCov::Formatter::HTMLFormatter, -    SimpleCov::Formatter::RcovFormatter -  ] -end -SimpleCov.start 'rails' do -  add_filter 'vendor' +unless ENV['NO_RCOV'] +  if ENV['JOB_NAME'] +    require 'simplecov-rcov' +    SimpleCov.formatters = [ +      SimpleCov::Formatter::HTMLFormatter, +      SimpleCov::Formatter::RcovFormatter +    ] +  end +  SimpleCov.start 'rails' do +    add_filter 'vendor' +  end  end  ENV["RAILS_ENV"] = 'test' | 
