Sha256: de37825bdc0f178f9608783b3cc142b2a46478bc0aa90bdc4198fc21c56b33dc

Contents?: true

Size: 742 Bytes

Versions: 1

Compression:

Stored size: 742 Bytes

Contents

require 'rubygems'
require 'bundler'
require 'ruby-debug'

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'))

require 'mercurial-ruby'
require 'fixtures'

$stderr.reopen('/dev/null')

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.autorun

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mercurial-ruby-0.3.0 test/helper.rb