spec/spec_helper.rb in rdf-vocab-3.1.9 vs spec/spec_helper.rb in rdf-vocab-3.1.10
- old
+ new
@@ -1,9 +1,22 @@
# frozen_string_literal: true
require "bundler/setup"
require 'rdf/vocab'
require 'matchers'
+begin
+ require 'simplecov'
+ require 'coveralls'
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+ ])
+ SimpleCov.start do
+ add_filter "/spec/"
+ end
+rescue LoadError
+end
+
RSpec.configure do |config|
config.filter_run focus: true
config.filter_run_excluding slow: true
config.run_all_when_everything_filtered = true
end