require "test/unit"
require "contest"
require "hpricot"

begin
  require "redgreen"
  require "ruby-debug"
rescue LoadError
end

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"),
                   File.expand_path(File.dirname(__FILE__) + "/../test/helper"))

require "bob"
require "git_helper"
require "svn_helper"
require "buildable_stub"

Bob.logger = Logger.new("/dev/null")
Bob.engine = Bob::BackgroundEngines::Foreground
Bob.directory = File.expand_path(File.dirname(__FILE__) + "/../tmp")

class Test::Unit::TestCase
  include Bob
  include TestHelper

  attr_reader :repo, :buildable

  def setup
    FileUtils.rm_rf(Bob.directory)
  end
end

require "test/unit"
require "contest"
require "hpricot"

begin
  require "redgreen"
  require "ruby-debug"
rescue LoadError
end

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"),
                   File.expand_path(File.dirname(__FILE__) + "/../test/helper"))

require "bob"
require "git_helper"
require "svn_helper"
require "buildable_stub"


class Test::Unit::TestCase
  include Bob
  include TestHelper

  attr_reader :repo, :buildable

  def setup
    FileUtils.rm_rf(Bob.directory)

    Bob.logger = Logger.new("/dev/null")
    Bob.engine = Bob::BackgroundEngines::Foreground
    Bob.directory = File.expand_path(File.dirname(__FILE__) + "/../tmp")
  end
end

Move Bob configuration for tests in setup
Move Bob configuration for tests in setup
