Skip to content

Commit

Permalink
Removed Sprite dependency for general class test
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Bailey <simon@newtriks.com>
  • Loading branch information
newtriks committed Aug 15, 2011
1 parent 313ab7d commit 1eb2e05
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/gator/as3/generators/test/asunit4/klass.as.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1eb2e05

Please sign in to comment.