--- trunk/t/01-frey-classloader.t 2008/11/18 12:55:32 408 +++ trunk/t/01-frey-classloader.t 2008/11/18 13:52:26 409 @@ -4,7 +4,7 @@ my $debug = @ARGV ? 1 : 0; -use Test::More tests => 21; +use Test::More tests => 27; use lib 'lib'; #use Devel::LeakTrace::Fast; @@ -48,3 +48,17 @@ is( $is_role, $test->{$p}, $is_role ? 'role' : 'not role' ); diag $meta->dump(2) if $debug; } + +my $methods = { + 'Frey' => [], + 'Frey::Editor' => [ 'url_regex', 'command' ], +}; + +foreach my $class ( keys %$methods ) { + ok( my @m = $o->class_methods($class), "class_methods( $class ) as array" ); + diag dump( @m ); + is_deeply( \@m, $methods->{$class}, 'without meta' ); + foreach my $method ( @{ $methods->{$class} } ) { + ok( $o->class_methods($class)->{ $method }, "$class has $method" ); + } +}