spec/spec_helper.rb in usps_flags-0.3.26 vs spec/spec_helper.rb in usps_flags-0.4.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: false
+
require 'bundler/setup'
Bundler.setup
require 'simplecov'
SimpleCov.start
@@ -8,18 +10,18 @@
# Some specs contain examples that check for the custom examples from USPSFlags::Errors
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"
+ $tmp_flags_dir = 'tmp/flags'
+ $tmp_alt_flags_dir = 'tmp/alt_flags'
USPSFlags.configure do |c|
c.flags_dir = $tmp_flags_dir
c.clear = true
end
end
config.after(:suite) do
- ::FileUtils.rm_rf("tmp") if ::Dir.exist?("tmp")
+ ::FileUtils.rm_rf('tmp') if ::Dir.exist?('tmp')
end
end