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
h4oflashsdk-1.0.13 test/unit/acompc_test.rb
h4oflashsdk-1.0.12 test/unit/acompc_test.rb
h4oflashsdk-1.0.11 test/unit/acompc_test.rb
h4oflashsdk-1.0.10 test/unit/acompc_test.rb
h4oflashsdk-1.0.9 test/unit/acompc_test.rb
h4oflashsdk-1.0.8 test/unit/acompc_test.rb
h4oflashsdk-1.0.7 test/unit/acompc_test.rb
h4oflashsdk-1.0.6 test/unit/acompc_test.rb
h4oflashsdk-1.0.5 test/unit/acompc_test.rb
h4oflashsdk-1.0.4 test/unit/acompc_test.rb
h4oflashsdk-1.0.3 test/unit/acompc_test.rb
h4oflashsdk-1.0.2 test/unit/acompc_test.rb
h4oflashsdk-1.0.1 test/unit/acompc_test.rb
h4oflashsdk-1.0.0 test/unit/acompc_test.rb
flashsdk_sqe-0.0.14 test/unit/acompc_test.rb
flashsdk_sqe-0.0.13 test/unit/acompc_test.rb
flashsdk_sqe-0.0.12 test/unit/acompc_test.rb
flashsdk_sqe-0.0.11 test/unit/acompc_test.rb
flashsdk_sqe-0.0.10 test/unit/acompc_test.rb
flashsdk_sqe-0.0.9 test/unit/acompc_test.rb