spec/spec_helper.rb in rubocop-rspec-1.8.0 vs spec/spec_helper.rb in rubocop-rspec-1.9.0
- old
+ new
@@ -1,12 +1,12 @@
require 'rubocop'
require 'rubocop/rspec/support'
if ENV['CI']
- require 'codeclimate-test-reporter'
- CodeClimate::TestReporter.start
+ require 'simplecov'
+ SimpleCov.start
end
module SpecHelper
ROOT = Pathname.new(__dir__).parent.freeze
end
@@ -14,16 +14,9 @@
spec_helper_glob = File.expand_path('{support,shared}/*.rb', __dir__)
Dir.glob(spec_helper_glob).map(&method(:require))
RSpec.configure do |config|
config.order = :random
-
- # Define spec metadata for all rspec cop spec files
- cop_specs = 'spec/rubocop/cop/rspec/'
- config.define_derived_metadata(file_path: /\b#{cop_specs}/) do |metadata|
- # Attach metadata that signals the specified code is for an RSpec only cop
- metadata[:rspec_cop] = true
- end
config.expect_with :rspec do |expectations|
expectations.syntax = :expect # Disable `should`
end