Skip to content

Commit

Permalink
perltidy
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Jan 22, 2010
1 parent ebfacdd commit d5c5dc9
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions t/mongodb.t
Expand Up @@ -23,19 +23,15 @@ my $collection = $db->get_collection("test");

my $keep =
exists $ENV{KIOKU_MONGODB_KEEP} ? $ENV{KIOKU_MONGODB_KEEP}
: $ENV{KIOKU_MONGODB_DB} ? 1
: 0;
: $ENV{KIOKU_MONGODB_DB} ? 1
: 0;


eval { $collection->drop };
my $sg = $keep || Scope::Guard->new(sub { $db->drop });

run_all_fixtures(
KiokuDB->new(
backend => KiokuDB::Backend::MongoDB->new(
'collection' => $collection,
),
)
);
my $mongo = KiokuDB::Backend::MongoDB->new('collection' => $collection,);

run_all_fixtures(KiokuDB->new(backend => $mongo));


0 comments on commit d5c5dc9

Please sign in to comment.