# vim: cindent ft=perl
use warnings;
use strict;
use Test::More tests => 5;
use File::Spec;
BEGIN { use_ok('Config::Scoped') }
my $cache = File::Spec->catfile( 't', 'files', 'cache-test.cfg' );
my ( $p, $cfg );
isa_ok( $p =
Config::Scoped->new( file => $cache, warnings => { perm => 'off' } ),
'Config::Scoped' );
ok( $cfg = $p->parse, 'parse' );
ok( $p->store_cache, 'dump' );
is_deeply( $p->retrieve_cache, $cfg, 'retrieve' );