Sha256: 55bd7059923b642753341614e3f9c67f481233257278d71e6db8d3a153b1c648

Contents?: true

Size: 908 Bytes

Versions: 4

Compression:

Stored size: 908 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

4 entries across 4 versions & 1 rubygems

Version Path
airake-0.3.1 test/test_airake.rb
airake-0.3.2 test/test_airake.rb
airake-0.4.0 test/test_airake.rb
airake-0.4.1 test/test_airake.rb