Sha256: 4829c2de5b1d24c533cebbae4e166e42a5ea4ae9045e3141617a6fc1f60a3b0d
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require "mocha" require "minitest/autorun" $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $stderr.reopen('/dev/null') require 'mercurial-ruby' require 'fixtures' def erase_fixture_repository `rm -Rf #{File.join(File.dirname(__FILE__), 'fixtures', 'test-repo')}` end def unpack_fixture_repository `unzip #{File.join(File.dirname(__FILE__), 'fixtures', 'test-repo.zip')} -d #{File.join(File.dirname(__FILE__), 'fixtures')}` end erase_fixture_repository unpack_fixture_repository class MiniTest::Unit::TestCase include Mocha::API def setup Mocha::Mockery.instance.stubba.unstub_all end private def stub_hgrc(path) File.open(path, 'w') do |f| f << Fixtures.hgrc_sample end end end MiniTest::Unit.after_tests { erase_fixture_repository } MiniTest::Unit.autorun
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mercurial-ruby-0.7.8 | test/helper.rb |