Sha256: cee9b40d319d919c1518a79418d1e24279da47413bf215c646962ced3a74e068

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "..", "lib")

require 'test/unit'
require 'buildmaster'

module BuildMaster

class AntTest < Test::Unit::TestCase
  protected
  def setup
    super
    build_file = File.join(File.dirname(__FILE__), "build.xml")
    @ant = Ant.new(build_file)
  end

  public
  
  def test_run
    @ant.project_help
  end
  
  def test_pass
    @ant.target('passing')
  end
  
  def test_fail
    assert_raise(RuntimeError) {@ant.target('failing')}
  end
end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
BuildMaster-0.6.0 test/buildmaster/tc_ant_client.rb