require 'test_helper' class FDBTest < Test::Unit::TestCase include Sprout::TestHelper context "a new fdb task" do setup do insert_fake_executable File.join(fixtures, 'sdk', 'fdb') end should "execute without shell params" do @fdb = FlashSDK::FDB.new @fdb.run @fdb.break "AsUnitRunner:12" @fdb.continue @fdb.kill @fdb.confirm @fdb.quit @fdb.execute end should "execute from rake task" do f = fdb :fdb_debug do |t| t.run t.break "AsUnitRunner:12" t.continue t.kill t.confirm t.quit end f.execute # NOTE: If this call raises, then the # Executable.update_rake_task_name method # must have changed, and the Daemon override # is no longer preventing non-File tasks # from being added to the CLEAN collection. # # Adding this as a message to the error would # not display for some reason... assert_equal 0, CLEAN.size, "There shouldn't be any tasks waiting to be cleaned up - found: (#{CLEAN.inspect})" end end end