Sha256: eb1415f1d04b47fef0beeaf5fd390f07f1fc36d117b7a87e7e194d29ef954a8c

Contents?: true

Size: 186 Bytes

Versions: 3

Compression:

Stored size: 186 Bytes

Contents

module TempfileSpecs
  def self.cleanup(tempfile)
    tempfile.close true unless tempfile.closed?
    File.delete tempfile.path if tempfile.path and File.exists? tempfile.path
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-tempfile-2.0.1 spec/fixtures/common.rb
rubysl-tempfile-1.0.0 spec/fixtures/common.rb
rubysl-tempfile-2.0.0 spec/fixtures/common.rb