spec/spec_helper.rb in bagit-0.4.3 vs spec/spec_helper.rb in bagit-0.4.4

- old
+ new

@@ -1,26 +1,28 @@ -require 'rubygems' -require 'bundler' -require 'coveralls' +# frozen_string_literal: true +require "rubygems" +require "bundler" +require "coveralls" + Bundler.require(:default, :test) Coveralls.wear! -require File.expand_path('./util/bagit_matchers', File.dirname(__FILE__)) +require File.expand_path("./util/bagit_matchers", File.dirname(__FILE__)) RSpec.configure do |config| config.include(BagitMatchers) end -$LOAD_PATH.unshift File.expand_path('../lib', File.dirname(__FILE__)) -require 'bagit' +$LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__)) +require "bagit" -require 'tempfile' +require "tempfile" class Sandbox def initialize - tf = Tempfile.open 'sandbox' + tf = Tempfile.open "sandbox" @path = tf.path tf.close! FileUtils.mkdir @path end