Sha256: bb6203aed468bf32854c0a8b782486389a3c7551fe48939fab698370fd4e5940

Contents?: true

Size: 805 Bytes

Versions: 3

Compression:

Stored size: 805 Bytes

Contents

# frozen_string_literal: true

require 'simplecov'
SimpleCov.start('rails') do
  add_filter '/spec/'
end
if ENV['CI'] == 'true'
  require 'codecov'
  SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require 'bundler/setup'
require 'em-http' # As of webmock 1.4.0, em-http must be loaded first
require 'multi_json'
require 'webmock/rspec'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run(:focus)

  config.expect_with(:rspec) do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with(:rspec) do |mocks|
    mocks.syntax = :expect
  end

  config.order = :random

  config.before(:each) do
    WebMock.reset!
    WebMock.disable_net_connect!
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
okcomputer-checks-1.1.1 spec/spec_helper.rb
okcomputer-checks-1.1.0 spec/spec_helper.rb
okcomputer-checks-1.0.0 spec/spec_helper.rb