/[Frey]/trunk/t/02-frey-introspect.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/02-frey-introspect.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by dpavlin, Wed Jul 2 22:30:19 2008 UTC revision 51 by dpavlin, Thu Jul 3 19:51:18 2008 UTC
# Line 4  use warnings; Line 4  use warnings;
4    
5  my $debug = @ARGV ? 1 : 0;  my $debug = @ARGV ? 1 : 0;
6    
7  use Test::More tests => 15;  use Test::More tests => 21;
8  use lib 'lib';  use lib 'lib';
9    
10  #use Devel::LeakTrace::Fast;  #use Devel::LeakTrace::Fast;
# Line 27  foreach my $package ( 'Strix::User', 'Fr Line 27  foreach my $package ( 'Strix::User', 'Fr
27          is( $o->meta->name, 'Frey::Introspect', 'meta->name' );          is( $o->meta->name, 'Frey::Introspect', 'meta->name' );
28    
29          ok( defined $o->debug, 'debug' );          ok( defined $o->debug, 'debug' );
30            ok( ! $o->path, 'no path' );
31    
32          ok( my $examine = $o->examine, 'examine' );          ok( my $examine = $o->examine, 'examine' );
33          diag dump( $examine ) if $debug;          diag dump( $examine ) if $debug;
34    
35            ok( $o->path, 'path' );
36    
37            my $cmd = 'js ' . $o->path;
38            my $syntax = `$cmd 2>&1`;
39            diag $syntax;
40    
41            ok( ! $syntax, 'syntax' );
42  }  }

Legend:
Removed from v.50  
changed lines
  Added in v.51

  ViewVC Help
Powered by ViewVC 1.1.26