Sha256: 57de2ce7d5d4161facccb7f15c4fcbd00374c663536ef938fda1ec459bea0823

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

require 'rubocop'

require 'rubocop/rspec/support'

if ENV['CI']
  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.order = :random

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect # Disable `should`
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect # Disable `should_receive` and `stub`
  end

  # 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

13 entries across 13 versions & 1 rubygems

Version Path
rubocop-rspec-1.24.0 spec/spec_helper.rb
rubocop-rspec-1.23.0 spec/spec_helper.rb
rubocop-rspec-1.22.2 spec/spec_helper.rb
rubocop-rspec-1.22.1 spec/spec_helper.rb
rubocop-rspec-1.22.0 spec/spec_helper.rb
rubocop-rspec-1.21.0 spec/spec_helper.rb
rubocop-rspec-1.20.1 spec/spec_helper.rb
rubocop-rspec-1.20.0 spec/spec_helper.rb
rubocop-rspec-1.19.0 spec/spec_helper.rb
rubocop-rspec-1.18.0 spec/spec_helper.rb
rubocop-rspec-1.17.1 spec/spec_helper.rb
rubocop-rspec-1.17.0 spec/spec_helper.rb
rubocop-rspec-1.16.0 spec/spec_helper.rb