Sha256: 5afce0ef94342c1927bd2902ab28d61a4b35719659fef8494075f700f1423778

Contents?: true

Size: 961 Bytes

Versions: 2

Compression:

Stored size: 961 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class TestAirake < Test::Unit::TestCase

  def setup
  end
  
  def teardown
    FileUtils.rm_rf("#{test_dir}/bin/*", :verbose => true)
    FileUtils.rm_rf("#{test_dir}/doc", :verbose => true)
  end
  
  def test_dir
    File.dirname(__FILE__) + "/Test\\ App"
  end
  
  def run_task(run)
    system("cd #{test_dir}; rake #{run}") || fail
  end
  
  def test_adl
    run_task("adl")
  end
  
  def test_acompc
    run_task("acompc SOURCE=src OUTPUT=bin/Foo.swc PACKAGES=\"com.test\"")
  end
  
  def test_compile
    run_task("compile")
  end
  
  def test_test
    run_task("test")
  end
  
  def test_clean
    run_task("clean")
  end
  
  def test_package
    puts <<-EOS
    
      Running package test. You will need to enter in the password: 'test'
    
    EOS
    run_task("package")
  end
  
  def test_docs    
    run_task("docs")    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
airake-0.2.14 test/test_airake.rb
airake-0.2.13 test/test_airake.rb