Sha256: 1305b7d5ac2b807c4412c2a95f7f15e3d12c44f27b17b6664cf956929099103e
Contents?: true
Size: 984 Bytes
Versions: 2
Compression:
Stored size: 984 Bytes
Contents
require 'rubocop' require 'rubocop/rspec/support' if ENV['COVERAGE'] == 'true' require 'simplecov' SimpleCov.start end module SpecHelper ROOT = Pathname.new(__dir__).parent.freeze end spec_helper_glob = File.expand_path('{support,shared}/*.rb', __dir__) Dir.glob(spec_helper_glob).map(&method(:require)) RSpec.configure do |config| config.define_derived_metadata(file_path: %r{/spec/rubocop/cop/}) do |meta| meta[:type] = :cop_spec end config.order = :random # Forbid RSpec from monkey patching any of our objects config.disable_monkey_patching! # We should address configuration warnings when we upgrade config.raise_errors_for_deprecations! # RSpec gives helpful warnings when you are doing something wrong. # We should take their advice! config.raise_on_warning = true config.include(ExpectOffense) end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rubocop-rspec'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-rspec-1.32.0 | spec/spec_helper.rb |
rubocop-rspec-1.31.0 | spec/spec_helper.rb |