Sha256: 3611d383b40890b49d5ced09b59516502a84bb0aa1d1fb8cc499b3dcc6269970

Contents?: true

Size: 592 Bytes

Versions: 6

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
Bundler.setup
require 'simplecov'
SimpleCov.start

require 'usps_flags'
require 'usps_flags/grades'

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

RSpec.configure do |config|
  config.before(:suite) do
    $tmp_flags_dir = 'tmp/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

6 entries across 6 versions & 1 rubygems

Version Path
usps_flags-grades-0.1.6 spec/spec_helper.rb
usps_flags-grades-0.1.5 spec/spec_helper.rb
usps_flags-grades-0.1.3 spec/spec_helper.rb
usps_flags-grades-0.1.2 spec/spec_helper.rb
usps_flags-grades-0.1.1 spec/spec_helper.rb
usps_flags-grades-0.1.0 spec/spec_helper.rb