Sha256: c3aaa78706d291b58f644c0f07f54d7e4ac82393dbd63d84f1004c395581c845

Contents?: true

Size: 845 Bytes

Versions: 1

Compression:

Stored size: 845 Bytes

Contents

module Gator
  module AS3
    module RobotLegs
      module ASUnit4

        class CommandTestGenerator < Gator::AS3::TestGenerator
                  include Gator::Project
                  include WithRobotLegsTemplates
                  include ActAsRobotLegsTestGenerator

          define :command => "command",
                 :usage => "generate as3 robotlegs test command CLASS_NAME", :description => "Creates ASUnit4 command test."

          def template_file
           "as3/robotlegs/test/asunit4/command.as.tt"
          end

          def generate
            @class_name += @class_name.match(/Command$/) && "Test" || "CommandTest"
            super
          end

          no_tasks {

          def instance_name
            @class_name.chomp("Test")
          end

          }

          end
        end
      end
    end
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gator-as3-robotlegs-0.0.3.pre lib/gator/as3/robotlegs/generators/test/asunit4/command.rb