Sha256: f2c68e551a59059c82482ec80822828fbae83a097245632f834c5f7ad91bcd55

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

# frozen_string_literal: true

if ENV.key?('COVERAGE')
  require 'simplecov'
  SimpleCov.start
end

require File.expand_path('../../lib/cistern', __FILE__)
Cistern.deprecation_warnings = ENV.key?('DEBUG')

Dir[File.expand_path('../{support,shared,matchers,fixtures}/*.rb', __FILE__)].each { |f| require(f) }

Bundler.require(:test)

RSpec.configure do |rspec|
  if Kernel.respond_to?(:caller_locations)
    require File.expand_path('../../lib/cistern/coverage', __FILE__)
  else
    rspec.filter_run_excluding(:coverage)
  end

  rspec.around(:each, :deprecated) do |example|
    original_value = Cistern.deprecation_warnings?
    Cistern.deprecation_warnings = false
    example.run
    Cistern.deprecation_warnings = original_value
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cistern-2.10.0 spec/spec_helper.rb
cistern-2.8.2 spec/spec_helper.rb
cistern-2.8.1 spec/spec_helper.rb