aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb20
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'