/[Frey]/trunk/t/01-frey-config.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/01-frey-config.t

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

revision 220 by dpavlin, Fri Oct 31 22:55:08 2008 UTC revision 221 by dpavlin, Fri Oct 31 23:10:08 2008 UTC
# Line 2  Line 2 
2  use strict;  use strict;
3  use warnings;  use warnings;
4    
5  use Test::More tests => 8;  use Test::More tests => 12;
6  use lib 'lib';  use lib 'lib';
7    
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
# Line 33  diag dump($config) if $debug; Line 33  diag dump($config) if $debug;
33  ok( $o->config->{test}, 'test' );  ok( $o->config->{test}, 'test' );
34  ok( $o->config->{config}, 'config' );  ok( $o->config->{config}, 'config' );
35  is( $o->config->{numeric}, 42, 'numeric' );  is( $o->config->{numeric}, 42, 'numeric' );
36    
37    ok( my $whole = $o->config('Test::Mock'), 'explicit package' );
38    diag dump($whole) if $debug;
39    
40    cmp_ok( $o->config->{test}, 'eq', $o->config('Test::Mock')->{test}, 'text' );
41    
42    ok( ! eval { $o->config('non-existenting') }, 'non-existing' );
43    ok( $@, 'detected' );

Legend:
Removed from v.220  
changed lines
  Added in v.221

  ViewVC Help
Powered by ViewVC 1.1.26