Sha256: 28707e2570475fb6ee5d9e93c085dff9939b62886c2a2176d3a4dd0ece57c64c

Contents?: true

Size: 886 Bytes

Versions: 2

Compression:

Stored size: 886 Bytes

Contents

require 'simplecov'
SimpleCov.start 'rails' do
  add_group 'Services', 'app/services'
end

# Save to CircleCI's artifacts directory if we're on CircleCI
if ENV['CIRCLE_ARTIFACTS']
  dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'coverage')
  SimpleCov.coverage_dir(dir)
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

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

WebMock.disable_net_connect!(allow_localhost: true)

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
welaika-suspenders-2.28.0 templates/spec_helper.rb
welaika-suspenders-2.27.0 templates/spec_helper.rb