Sha256: eefe864652dcda1544bc01afa5e4efcb67d4f673c1b19ba4a65220b51bbd90ec
Contents?: true
Size: 450 Bytes
Versions: 6
Compression:
Stored size: 450 Bytes
Contents
require 'gitrb' module TestHelper def ls_tree(id) repo.git_ls_tree(id).split("\n").map {|line| line.split(" ") } end def file(file, data) Dir.chdir(repo.path[0..-6]) do FileUtils.mkpath(File.dirname(file)) open(file, 'w') { |io| io << data } repo.git_add(file) repo.git_commit('-m', 'added #{file}') File.unlink(file) end end end class Bacon::Context include TestHelper attr_reader :repo end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
gitrb-0.2.1 | test/helper.rb |
gitrb-0.2.0 | test/helper.rb |
gitrb-0.1.9 | test/helper.rb |
gitrb-0.1.8 | test/helper.rb |
gitrb-0.1.7 | test/helper.rb |
gitrb-0.1.6 | test/helper.rb |