Sha256: 37f1bfb276424ce6479b3f01e34e4987c1db7d228ddc33ef97b406f51cbd911d
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require File.join(File.dirname(__FILE__), 'test_helper') class COMPCTest < Test::Unit::TestCase include SproutTestCase context "An COMPC tool" do setup do @fixture = File.join 'test', 'fixtures', 'compc', 'simple' @input = File.join @fixture, 'SomeFile.as' @expected_output = File.join @fixture, 'SomeFile.swc' #Sprout::Log.debug = false end teardown do remove_file @expected_output end should "accept input" do as_a_unix_system do compc = FlashSDK::COMPC.new compc.output = @expected_output compc.include_sources << @fixture assert_equal '--output=test/fixtures/compc/simple/SomeFile.swc --static-link-runtime-shared-libraries --include-sources+=test/fixtures/compc/simple', compc.to_shell end end should "compile a swc" do compc = FlashSDK::COMPC.new compc.include_sources << @fixture compc.output = @expected_output compc.execute assert_file @expected_output end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flashsdk-1.0.12.pre | test/unit/compc_test.rb |
flashsdk-1.0.5.pre | test/unit/compc_test.rb |