Sha256: 138a5a6927455aae3966770ced4d291bc95ebb754356d45c263b174a5c3d6925

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

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

require 'usps_flags'
require 'usps_flags/burgees'

# The spec for USPSFlags::Burgees contains an example that checks for
# USPSFlags::Errors::UnknownBurgee
RSpec::Expectations.configuration.on_potential_false_positives = :nothing

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

    USPSFlags::Config.new do |c|
      c.flags_dir = $tmp_flags_dir
    end
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
usps_flags-burgees-0.0.8 spec/spec_helper.rb
usps_flags-burgees-0.0.7 spec/spec_helper.rb
usps_flags-burgees-0.0.6 spec/spec_helper.rb