Sha256: 80a2af933bb81469478f85d3cead7dc86e06732b205306931c0e4b4f4fccd55e

Contents?: true

Size: 854 Bytes

Versions: 4

Compression:

Stored size: 854 Bytes

Contents

# frozen_string_literal: true

require "bundler/setup"
require "declare_schema"
require "climate_control"

RSpec.configure do |config|
  # Enable flags like --only-failures and --next-failure
  config.example_status_persistence_file_path = ".rspec_status"

  # Disable RSpec exposing methods globally on `Module` and `main`
  config.disable_monkey_patching!

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end
  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
  config.shared_context_metadata_behavior = :apply_to_host_groups

  RSpec::Support::ObjectFormatter.default_instance.max_formatted_output_length = 2_000

  def with_modified_env(options, &block)
    ClimateControl.modify(options, &block)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
declare_schema-0.1.3 spec/spec_helper.rb
declare_schema-0.1.2 spec/spec_helper.rb
declare_schema-0.1.1 spec/spec_helper.rb
declare_schema-0.1.0 spec/spec_helper.rb