spec/spec_helper.rb in preserve-2.0.1 vs spec/spec_helper.rb in preserve-2.1.0
- old
+ new
@@ -1,11 +1,23 @@
ENV['RAILS_ENV'] ||= 'test'
require 'bundler/setup'
-require 'coveralls'
-require 'rails'
+require 'simplecov'
-Coveralls.wear!
+SimpleCov.start do
+ if ENV['CI']
+ require 'simplecov-lcov'
+
+ SimpleCov::Formatter::LcovFormatter.config do |config|
+ config.report_with_single_file = true
+ config.single_report_path = 'coverage/lcov.info'
+ end
+
+ formatter SimpleCov::Formatter::LcovFormatter
+ end
+end
+
+require 'rails'
version = Rails::VERSION::MAJOR
dummy_root = File.expand_path("dummy/rails-#{version}", __dir__)
require "#{dummy_root}/config/environment.rb"