Sha256: 15af7260b6834bd09007dd6b21c7cddac676e5d64d10a8b0a5f187f074031f6d

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 Bytes

Contents

require "tmpdir"

require "test_construct/version"
require "test_construct/helpers"
require "test_construct/pathname_extensions"

module TestConstruct

  CONTAINER_PREFIX = 'construct_container'

  def self.tmpdir
    dir = nil
    Dir.chdir Dir.tmpdir do dir = Dir.pwd end # HACK FOR OS X
    dir
  end

  def self.destroy_all!
    Pathname.glob(File.join(tmpdir, CONTAINER_PREFIX + "*")) do |container|
      container.rmtree
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
test_construct-2.0.2 lib/test_construct.rb
test_construct-2.0.1 lib/test_construct.rb
test_construct-2.0.0 lib/test_construct.rb
test_construct-1.0.0 lib/test_construct.rb