Sha256: 930ff0287fd7f6b68e1c98639a22c9453a6a827109da43d3391e2b8ce4c64f16

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 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"
    $tmp_burgees_dir = "tmp/path/to/burgees"

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
usps_flags-burgees-0.0.10 spec/spec_helper.rb
usps_flags-burgees-0.0.9 spec/spec_helper.rb