Sha256: ebd35ab61977ce117fa16e251c6acb6ed27a28b35f0a3649ea06dd1273f8bff3

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

if ENV["CC_TEST_REPORTER_ID"] || ENV["COVERAGE"]
  require "simplecov"
  SimpleCov.start
end

require "pry"
require File.expand_path("../lib/dumb_delegator", File.dirname(__FILE__))

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
  # have no way to turn it off -- the option exists only for backwards
  # compatibility in RSpec 3). It causes shared context metadata to be
  # inherited by the metadata hash of host groups and examples, rather than
  # triggering implicit auto-inclusion in groups with matching metadata.
  config.shared_context_metadata_behavior = :apply_to_host_groups

  config.filter_run_when_matching :focus
  config.example_status_persistence_file_path = "spec/rspec-status.txt"
  config.disable_monkey_patching!
  config.warnings = true

  if config.files_to_run.one?
    # Use the documentation formatter for detailed output,
    # unless a formatter has already been configured
    # (e.g. via a command-line flag).
    config.default_formatter = "doc"
  end
  config.order = :random
  Kernel.srand config.seed
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dumb_delegator-1.0.0 spec/spec_helper.rb