Sha256: 3d98b165a3651a586e1b9276d8f59de031f74264604f9ab64daf47c084c02f00

Contents?: true

Size: 765 Bytes

Versions: 6

Compression:

Stored size: 765 Bytes

Contents

require 'coveralls'
Coveralls.wear!
require 'bundler/setup'
Bundler.setup
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

require 'usps_flags'

# The spec for USPSFlags and USPSFlags::Generate contain some examples that check for
# USPSFlags::Errors::PNGGenerationError
# USPSFlags::Errors::StaticFilesGenerationError
# USPSFlags::Errors::ZipGenerationError
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::Config.new do |config|
      config.flags_dir = $tmp_flags_dir
    end
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
usps_flags-0.3.5 spec/spec_helper.rb
usps_flags-0.3.4 spec/spec_helper.rb
usps_flags-0.3.3 spec/spec_helper.rb
usps_flags-0.3.2 spec/spec_helper.rb
usps_flags-0.3.1 spec/spec_helper.rb
usps_flags-0.3.0 spec/spec_helper.rb