Permalink
Browse files

Removed Sprite dependency for general class test

Signed-off-by: Simon Bailey <simon@newtriks.com>
  • Loading branch information...
1 parent 313ab7d commit 1eb2e05a5d1141b281db0b55a37e9d1dd4cf661b @newtriks newtriks committed Aug 15, 2011
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/gator/as3/generators/test/asunit4/klass.as.tt
@@ -2,28 +2,20 @@ package <%= package_name %>
{
import asunit.asserts.*;
- import flash.display.Sprite;
-
public class <%= class_name %>
{
- [Inject]
- public var context:Sprite;
-
private var instance:<%= instance_name %>;
[Before]
public function setUp():void
{
instance=new <%= instance_name %>();
- context.addChild(instance);
}
[After]
public function tearDown():void
{
- context.removeChild(instance);
instance=null;
- context=null;
}
[Test]

0 comments on commit 1eb2e05

Please sign in to comment.