Sha256: 43024b08e22d98430f3b9eb82b9934ef728410623e8c6efa5322f13ba8447580

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

# encoding: utf-8

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

require 'rubocop'

RSpec.configure do |config|
  # These two settings work together to allow you to limit a spec run
  # to individual examples or groups you care about by tagging them with
  # `:focus` metadata. When nothing is tagged with `:focus`, all examples
  # get run.
  config.filter_run :focus
  config.run_all_when_everything_filtered = true

  config.order = :random

  config.filter_run_excluding ruby: ->(v) { !RUBY_VERSION.start_with?(v.to_s) }

  broken_filter = lambda do |v|
    v.is_a?(Symbol) ? RUBY_ENGINE == v.to_s : v
  end
  config.filter_run_excluding broken: broken_filter

  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

# Disable colors in specs
Rainbow.enabled = false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-0.28.0 spec/spec_helper.rb
rubocop-0.27.1 spec/spec_helper.rb
rubocop-0.27.0 spec/spec_helper.rb