Sha256: 04c21bb24be21fb7f067bd8bdb13d43fcbeccda9e5d6488d0c5419703ef8373b

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 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

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

5 entries across 5 versions & 1 rubygems

Version Path
bagit-0.4.2 spec/spec_helper.rb
bagit-0.4.1 spec/spec_helper.rb
bagit-0.4.0 spec/spec_helper.rb
bagit-0.3.5 spec/spec_helper.rb
bagit-0.3.4 spec/spec_helper.rb