Sha256: 4516a1c78a522be6fea43edbba38a33f53b07a090f7f53a98fcb581ef9f399d5

Contents?: true

Size: 757 Bytes

Versions: 1

Compression:

Stored size: 757 Bytes

Contents

ENV['RUBYOPT'] = 'W0'

lib = File.expand_path('../lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'rspec'
require 'rspec/mocks'
require 'rspec/expectations'
require 'pry-byebug'

if ARGV.empty?
  require 'simplecov'

  SimpleCov.start do
    add_filter 'spec/'
  end
end

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |spec|
  spec.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end
  spec.raise_errors_for_deprecations!
  spec.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mc-settings-0.2.0 spec/spec_helper.rb