Class: TestGenerator

Inherits:
Sprout::Generator::NamedBase
  • Object
show all
Defined in:
lib/sprout/generators/test/test_generator.rb

Overview

Generate a new ActionScript 3.0 TestCase and rebuild the test suites. This generator can be executed as follows:

sprout -n as3 SomeProject
cd SomeProject
script/generator test utils.MathUtilTest

Instance Method Summary collapse

Instance Method Details

#manifestObject

:nodoc:



11
12
13
14
15
16
17
18
# File 'lib/sprout/generators/test/test_generator.rb', line 11

def manifest
  record do |m|
    m.directory full_test_dir
    m.template "TestCase.as", full_test_case_path

    m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force
  end
end