Sha256: 76d84daca349cbb0e8534d2ca32b3d42e94587ac201337f07513ba604d56226a
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require 'test_helper' class FCSHTest < Test::Unit::TestCase include Sprout::TestHelper context "associate FCSH with an MXMLC task" do setup do @fixture = File.join fixtures, 'mxmlc' @input = File.join @fixture, 'simple', 'SomeFile.as' @broken_input = File.join @fixture, 'broken', 'SomeFile.as' @expected_output = File.join @fixture, 'simple', 'SomeFile.swf' # Uncomment following to see output: #Sprout.stdout = $stdout #Sprout.stderr = $stderr end teardown do remove_file @expected_output end should "collect errors as needed" do mxmlc = FlashSDK::MXMLC.new mxmlc.input = @broken_input fcsh = FlashSDK::FCSH.new fcsh.execute false fcsh.mxmlc mxmlc.to_shell fcsh.quit fcsh.wait expected_error_message = '1 Error: Syntax error: expecting rightbrace before end of program' assert_matches /#{expected_error_message}/, Sprout.stderr.read end should "spin up FCSH" do mxmlc = FlashSDK::MXMLC.new mxmlc.input = @input fcsh = FlashSDK::FCSH.new fcsh.execute false fcsh.mxmlc mxmlc.to_shell FileUtils.touch @input fcsh.compile 1 fcsh.quit fcsh.wait assert_file @expected_output end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flashsdk-1.0.18.pre | test/unit/fcsh_test.rb |
flashsdk-1.0.17.pre | test/unit/fcsh_test.rb |
flashsdk-1.0.15.pre | test/unit/fcsh_test.rb |