Sha256: 2752f0500a73c00a34c2b5795432426f5c776131f27905adf02c7cc7872f0392

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

require 'bundler/setup'
Bundler.setup
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

require 'usps_flags'

# Some specs contain examples that check for the custom examples from USPSFlags::Errors
RSpec::Expectations.configuration.on_potential_false_positives = :nothing

RSpec.configure do |config|
  config.before(:suite) do
    $tmp_flags_dir = "tmp/flags"
    $tmp_alt_flags_dir = "tmp/alt_flags"

    USPSFlags.configure do |c|
      c.flags_dir = $tmp_flags_dir
    end
  end

  config.after(:suite) do
    ::FileUtils.rm_rf("tmp") if ::Dir.exist?("tmp")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
usps_flags-0.3.12 spec/spec_helper.rb
usps_flags-0.3.11 spec/spec_helper.rb