Skip to content

Commit

Permalink
add subs.t
Browse files Browse the repository at this point in the history
  • Loading branch information
shelling committed Apr 6, 2009
1 parent db79fbf commit 50ae36d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/simple.t
@@ -1,4 +1,5 @@
use strict;
use Test::More tests => 1;
use Test::More tests => 2;

BEGIN { use_ok("Class::Implant") };
require_ok("Class::Implant");
12 changes: 12 additions & 0 deletions t/subs.t
@@ -0,0 +1,12 @@
use Test::More qw(no_plan);

package Foo;
sub hello {"hello"}
sub world {"world"}

package Bar;
use Class::Implant;
implant qw(Foo);

package main;
can_ok(Bar,qw(hello world))

0 comments on commit 50ae36d

Please sign in to comment.