--- trunk/t/01-frey-storage.t 2008/07/16 23:04:22 151 +++ trunk/t/01-frey-storage.t 2008/07/16 23:21:19 153 @@ -44,13 +44,11 @@ $data->{baz} = 42; ok( $o->store( $path, $data ), 'store again' ); -my $new; -ok( $o->reload( $path, \$new ), 'reload' ); +ok( my $new = $o->reload( $path ), 'reload' ); diag dump( $data, $new ) if $debug; is_deeply( $data, $new, 'same' ); -my $keep = { 'test' => 'data' }; -my $new2 = $keep; -ok( ! $o->reload( $path, \$new2 ), 'reload' ); -is_deeply( $keep, $new2, 'same' ); +ok( ! $o->reload( $path ), 'no reload' ); + +ok( ! $o->load( 'var/something.which.doesnt.exist' ), 'load without file' );