Sha256: 1cb023c531228f3aff56f16c90d8f0c2751d2cc6c506b5c61fc884468e4ea2dc

Contents?: true

Size: 794 Bytes

Versions: 3

Compression:

Stored size: 794 Bytes

Contents

# frozen_string_literal: true

if ENV.fetch('COVERAGE', false)
  require 'simplecov'

  if ENV['CIRCLE_ARTIFACTS']
    dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'coverage')
    SimpleCov.coverage_dir(dir)
  end

  SimpleCov.start 'rails'
end

require 'webmock/rspec'
require 'timecop'

# http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

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

  config.example_status_persistence_file_path = 'tmp/rspec_examples.txt'
  config.order = :random
end

WebMock.disable_net_connect!(allow_localhost: true)

# Only allow Timecop with block syntax
Timecop.safe_mode = true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
underlay-2.0 templates/spec_helper.rb
underlay-1.52.1 templates/spec_helper.rb
underlay-1.50.1 templates/spec_helper.rb