Sha256: 96c3023d7e6a245a3d309dae3e016cb0b99d09f72b9c6587e8ea7d01425f9d3b

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

require 'fileutils'
require 'simplecov'
SimpleCov.start

def fixture *args
  File.join File.dirname(__FILE__), "fixtures", *args
end

def directory path
  full = fixture(path)
  FileUtils::mkdir_p full
  return full
end

def file *args
  file = File.join *args[0..-2]
  directory File.dirname(file)
  File.open(file, 'w') {|f| f.write args[-1] }
  return file
end


def rm path
  FileUtils::rm_rf path
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
s3ranger-0.3.0 spec/spec_helper.rb
s3ranger-0.2.1 spec/spec_helper.rb
s3ranger-0.2.0 spec/spec_helper.rb
s3ranger-0.1.0 spec/spec_helper.rb