Sha256: 861450bc60f65076698c76b0658762a23d9af949ec90558be8c84e16d7421999

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

require 'rubygems'
require 'bundler'
require 'coveralls'

Bundler.require(:default, :test)

Coveralls.wear!

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'

require 'tempfile'

class Sandbox
  def initialize
    tf = Tempfile.open 'sandbox'
    @path = tf.path
    tf.close!
    FileUtils.mkdir @path
  end

  def cleanup!
    FileUtils.rm_rf @path
  end

  def to_s
    @path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bagit-0.4.3 spec/spec_helper.rb