spec/spec_helper.rb in build-environment-1.1.5 vs spec/spec_helper.rb in build-environment-1.2.0
- old
+ new
@@ -1,26 +1,11 @@
-if ENV['COVERAGE']
- begin
- require 'simplecov'
-
- SimpleCov.start do
- add_filter "/spec/"
- end
-
- if ENV['TRAVIS']
- require 'coveralls'
- Coveralls.wear!
- end
- rescue LoadError
- warn "Could not load simplecov: #{$!}"
- end
-end
+require 'covered/rspec'
+require 'build/environment'
-require "bundler/setup"
-require "build/environment"
-
RSpec.configure do |config|
+ config.disable_monkey_patching!
+
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
config.expect_with :rspec do |c|
c.syntax = :expect