Sha256: a38e07c0fb8e8a09ab15afb341f82010646dc987f51e20917518edcbdba008ad

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

require 'test_helper'

class FDBTest < Test::Unit::TestCase
  include Sprout::TestHelper

  context "a new fdb task" do

    setup do
      #Sprout.stdout = $stdout
      #Sprout.stderr = $stderr
      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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flashsdk-1.0.18.pre test/unit/fdb_test.rb
flashsdk-1.0.17.pre test/unit/fdb_test.rb
flashsdk-1.0.15.pre test/unit/fdb_test.rb