Sha256: 27af7689a7d90063b73fc4a5c408b20cdf849e4bb04d5bdbc388e2d889c156db

Contents?: true

Size: 760 Bytes

Versions: 12

Compression:

Stored size: 760 Bytes

Contents

require 'bundler/setup'
Bundler.setup
require 'simplecov'
SimpleCov.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

12 entries across 12 versions & 1 rubygems

Version Path
usps_flags-burgees-0.0.22 spec/spec_helper.rb
usps_flags-burgees-0.0.21 spec/spec_helper.rb
usps_flags-burgees-0.0.20 spec/spec_helper.rb
usps_flags-burgees-0.0.19 spec/spec_helper.rb
usps_flags-burgees-0.0.18 spec/spec_helper.rb
usps_flags-burgees-0.0.17 spec/spec_helper.rb
usps_flags-burgees-0.0.16 spec/spec_helper.rb
usps_flags-burgees-0.0.15 spec/spec_helper.rb
usps_flags-burgees-0.0.14 spec/spec_helper.rb
usps_flags-burgees-0.0.13 spec/spec_helper.rb
usps_flags-burgees-0.0.12 spec/spec_helper.rb
usps_flags-burgees-0.0.11 spec/spec_helper.rb