Sha256: 2dd3682778f8e7a44f10628b7872ecd54e40921fc0ee7a48ce802cb13104318c

Contents?: true

Size: 1.76 KB

Versions: 12

Compression:

Stored size: 1.76 KB

Contents

# frozen_string_literal: true
require 'active_support/testing/time_helpers'

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    # Prevents you from mocking or stubbing a method that does not exist on
    # a real object. This is generally recommended, and will default to
    # `true` in RSpec 4.
    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

  # This allows 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. RSpec also provides
  # aliases for `it`, `describe`, and `context` that include `:focus`
  # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
  config.filter_run_when_matching :focus

  config.example_status_persistence_file_path = "spec/examples.txt"

  config.disable_monkey_patching!

  if config.files_to_run.one?
    config.default_formatter = "doc"
  end

  config.order = :random

  # Seed global randomization in this process using the `--seed` CLI option.
  Kernel.srand config.seed

  config.include ActiveSupport::Testing::TimeHelpers
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nulogy_sso-2.6.0 spec/spec_helper.rb
nulogy_sso-2.5.1 spec/spec_helper.rb
nulogy_sso-2.5.0 spec/spec_helper.rb
nulogy_sso-2.4.0 spec/spec_helper.rb
nulogy_sso-2.3.1 spec/spec_helper.rb
nulogy_sso-2.3.0 spec/spec_helper.rb
nulogy_sso-2.2.0 spec/spec_helper.rb
nulogy_sso-2.1.3 spec/spec_helper.rb
nulogy_sso-2.1.2 spec/spec_helper.rb
nulogy_sso-2.1.1 spec/spec_helper.rb
nulogy_sso-2.1.0 spec/spec_helper.rb
nulogy_sso-2.0.0 spec/spec_helper.rb