Sha256: d0121457a5e809048e5ad01624656162a6160b394bfc1e817f712c71999aad32

Contents?: true

Size: 734 Bytes

Versions: 5

Compression:

Stored size: 734 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

5 entries across 5 versions & 1 rubygems

Version Path
cistern-2.6.0 spec/spec_helper.rb
cistern-2.5.0 spec/spec_helper.rb
cistern-2.4.1 spec/spec_helper.rb
cistern-2.4.0 spec/spec_helper.rb
cistern-2.3.0 spec/spec_helper.rb