Sha256: d140d121febeb95911c9fe8e6ca39c2e316c765034150f81aae3cd1f0d93a015

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 Bytes

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', 'simple'
      @input           = File.join @fixture, 'SomeFile.as'
      @expected_output = File.join @fixture, 'SomeFile.swf'
    end

    teardown do
      remove_file @expected_output
    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

1 entries across 1 versions & 1 rubygems

Version Path
flashsdk-1.0.14.pre test/unit/fcsh_test.rb