Sha256: 421d0e05c3f7967b5645e2cc0acb3988eac19c588689937735176d196bb76d17

Contents?: true

Size: 955 Bytes

Versions: 29

Compression:

Stored size: 955 Bytes

Contents

require 'test_helper'

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

  context "An ACOMPC tool" do

    setup do
      @fixture         = File.join 'test', 'fixtures', 'acompc', 'simple'
      @input           = File.join @fixture, 'SomeAirFile.as'
      @expected_output = File.join @fixture, 'SomeAirFile.swc'
    end

    teardown do
      remove_file @expected_output
    end

    should "accept input" do
      as_a_unix_system do
        compc = FlashSDK::ACOMPC.new
        compc.output = @expected_output
        compc.include_sources << @fixture
        assert_equal '--output=test/fixtures/acompc/simple/SomeAirFile.swc --include-sources+=test/fixtures/acompc/simple', compc.to_shell
      end
    end

    should "compile a swc" do
      compc = FlashSDK::ACOMPC.new
      compc.include_sources << @fixture
      compc.output = @expected_output
      compc.execute
      assert_file @expected_output
    end

  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
flashsdk_sqe-0.0.7 test/unit/acompc_test.rb
flashsdk_sqe-0.0.6 test/unit/acompc_test.rb
flashsdk_sqe-0.0.4 test/unit/acompc_test.rb
flashsdk_sqe-0.0.3 test/unit/acompc_test.rb
flashsdk_sqe-0.0.2 test/unit/acompc_test.rb
flashsdk_sqe-0.0.1 test/unit/acompc_test.rb
flashsdk-1.1.36.pre test/unit/acompc_test.rb
flashsdk-1.0.34.pre test/unit/acompc_test.rb
flashsdk-1.0.33.pre test/unit/acompc_test.rb