Sha256: a46cd4bc3103f90e5e9d3d4f02de89daf2ef0d195ce5742a67cb888c22461871

Contents?: true

Size: 735 Bytes

Versions: 3

Compression:

Stored size: 735 Bytes

Contents

if ENV['TRAVIS']
  require 'codeclimate-test-reporter'
  CodeClimate::TestReporter.start
end

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

Bundler.require(:test)

Cistern.deprecation_warnings = !!ENV['DEBUG']

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.7.2 spec/spec_helper.rb
cistern-2.7.1 spec/spec_helper.rb
cistern-2.7.0 spec/spec_helper.rb