--- trunk/t/01-frey-config.t 2008/10/31 23:10:08 221 +++ trunk/t/01-frey-config.t 2008/11/26 07:57:12 532 @@ -2,12 +2,12 @@ use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 13; use lib 'lib'; use Data::Dump qw/dump/; -my $debug = 1 if @ARGV; +my $debug = @ARGV ? 1 : 0; BEGIN { use_ok('Frey::Config'); @@ -39,5 +39,7 @@ cmp_ok( $o->config->{test}, 'eq', $o->config('Test::Mock')->{test}, 'text' ); -ok( ! eval { $o->config('non-existenting') }, 'non-existing' ); -ok( $@, 'detected' ); +ok( ! $o->config('non-existenting'), 'non-existing' ); + +ok( ! $o->load_config, 'load_config' ); +is_deeply( $o->config, $config, 'not duplicated' );