spec/spec_helper.rb in invisible_captcha-2.0.0 vs spec/spec_helper.rb in invisible_captcha-2.1.0
- old
+ new
@@ -1,8 +1,15 @@
# frozen_string_literal: true
ENV['RAILS_ENV'] = 'test'
+require 'simplecov'
+if ENV['CI']
+ require 'simplecov-cobertura'
+ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
+end
+SimpleCov.start
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'invisible_captcha'
RSpec.configure do |config|