diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-05-28 23:18:40 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-05-28 23:18:40 -0500 |
commit | ba4ad16b04fa9bb89ce6fe89493ebfdf76163320 (patch) | |
tree | 87095faad741db207a3548ed4a38376a3fa3b68f | |
parent | 058f1be1e12a7ce1438702f9a88046c076cdb5a3 (diff) | |
download | moosex-abc-ba4ad16b04fa9bb89ce6fe89493ebfdf76163320.tar.gz moosex-abc-ba4ad16b04fa9bb89ce6fe89493ebfdf76163320.zip |
the todo test is now passing
-rw-r--r-- | t/001-basic.t | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t/001-basic.t b/t/001-basic.t index bae0cc0..44a68dd 100644 --- a/t/001-basic.t +++ b/t/001-basic.t @@ -27,7 +27,5 @@ my $foosub; lives_ok { $foosub = Foo::Sub1->new } 'instantiating concrete subclasses works'; isa_ok($foosub, 'Foo', 'inheritance is correct'); -TODO: { - local $TODO = "constructor stuff isn't done yet"; - dies_ok { Foo->new } 'instantiating abstract classes fails'; -} +throws_ok { Foo->new } qr/Foo is abstract, it cannot be instantiated/, + 'instantiating abstract classes fails'; |