spec/spec_helper.rb in cistern-2.7.2 vs spec/spec_helper.rb in cistern-2.8.0
- old
+ new
@@ -1,15 +1,15 @@
-if ENV['TRAVIS']
- require 'codeclimate-test-reporter'
- CodeClimate::TestReporter.start
+if ENV.key?('COVERAGE')
+ require 'simplecov'
+ SimpleCov.start
end
require File.expand_path('../../lib/cistern', __FILE__)
+Cistern.deprecation_warnings = ENV.key?('DEBUG')
+
Dir[File.expand_path('../{support,shared,matchers,fixtures}/*.rb', __FILE__)].each { |f| require(f) }
Bundler.require(:test)
-
-Cistern.deprecation_warnings = !!ENV['DEBUG']
RSpec.configure do |rspec|
if Kernel.respond_to?(:caller_locations)
require File.expand_path('../../lib/cistern/coverage', __FILE__)
else