spec/spec_helper.rb in schema_expectations-0.0.1 vs spec/spec_helper.rb in schema_expectations-0.2.0
- old
+ new
@@ -1,6 +1,15 @@
-require 'codeclimate-test-reporter'
-CodeClimate::TestReporter.start
+if !ENV['BUNDLE_GEMFILE'] || ENV['BUNDLE_GEMFILE'] =~ /default.gemfile\z/
+ if ENV['CI']
+ require 'codeclimate-test-reporter'
+ CodeClimate::TestReporter.start
+ else
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter 'vendor'
+ end
+ end
+end
require 'rspec'
require 'pry'
require 'schema_expectations'