Sha256: d1dda6a9456ad54fd6ae5f94f4b5ca0a2d30a529007aa75e54ca2d20f71289bb
Contents?: true
Size: 608 Bytes
Versions: 4
Compression:
Stored size: 608 Bytes
Contents
require 'test/unit' $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'madrox' class MadroxTest < Test::Unit::TestCase def fork_git_fixture(name, dest = :test) old_path = File.join(File.dirname(__FILE__), "fixtures/#{name}.git") new_path = File.join(File.dirname(__FILE__), "#{dest}.git") repo = Grit::Repo.new(old_path).fork_bare(new_path) Madrox::Repo.new(repo.path) end def clear_git_fixtures(*fixtures) (fixtures << :test).each do |name| FileUtils.rm_rf File.join(File.dirname(__FILE__), "#{name}.git") end end def default_test end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
madrox-0.3.0 | test/helper.rb |
madrox-0.2.0 | test/helper.rb |
madrox-0.1.1 | test/helper.rb |
madrox-0.1.0 | test/helper.rb |