$:.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