Sha256: 83d2d45f256e838a1cc4f87282be574b096af883edb656b2f834693a91391ce1

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

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

require 'spec'
require 'buildmaster'
require 'buildmaster/cotta'

module BuildMaster

context 'AntTest' do
  setup do
    cotta = Cotta.new()
    build_file = cotta.file(__FILE__).parent.file('build.xml')
    @ant = AntDriver.from_file(build_file)
  end

  specify 'run' do
    @ant.project_help
  end
  
  specify 'pass' do
    @ant.target('passing')
  end
  
  specify 'dynamic_method' do
    @ant.passing
  end
  
  specify 'fail' do
    lambda {@ant.target('failing')}.should_raise CommandError
  end
end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
BuildMaster-0.9.0 test/buildmaster/tc_ant_driver.rb
BuildMaster-0.9.1 test/buildmaster/tc_ant_driver.rb