Sha256: fed7b777615b42e41eb502324d22b5d28cb180a655bf8244059bc83fe75540aa

Contents?: true

Size: 524 Bytes

Versions: 2

Compression:

Stored size: 524 Bytes

Contents

require 'rubygems'
require 'bundler'
Bundler.require(:default, :test)

require File.expand_path('./util/bagit_matchers', File.dirname(__FILE__))

RSpec.configure do |config|
  config.include(BagitMatchers)
end

$:.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

2 entries across 2 versions & 1 rubygems

Version Path
bagit-0.3.2 spec/spec_helper.rb
bagit-0.3.2.pre spec/spec_helper.rb