Sha256: 36fd8c83e0a7500d3cb76b326de789445d716b8d5c26bf5e4b361cf607288f15

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

# 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
#
class TestGenerator < Sprout::Generator::NamedBase # :nodoc:

  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
  
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sprout-as3-bundle-1.0.37 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.36 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.32 lib/sprout/generators/test/test_generator.rb
sprout-as2-bundle-0.1.28 lib/sprout/generators/test/test_generator.rb
sprout-as2-bundle-0.1.27 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.31 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.29 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.30 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.20 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.21 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.22 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.23 lib/sprout/generators/test/test_generator.rb
sprout-as3-bundle-1.0.24 lib/sprout/generators/test/test_generator.rb