Sha256: bbd26a6743c1d01b0eaca417869fcfe8295249038934106f6316d76d4e0d54d1

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

# encoding: utf-8

require 'rubocop'

rubocop_gem_path = Gem::Specification.find_by_name('rubocop').gem_dir
Dir["#{rubocop_gem_path}/spec/support/**/*.rb"].each { |f| require f }

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
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.3.0 spec/spec_helper.rb
rubocop-rspec-1.2.2 spec/spec_helper.rb