3 use Test::More qw(no_plan);
5 use_ok "LolCatalyst::Lite::SnippetStore";
7 my $store = LolCatalyst::Lite::SnippetStore->new;
12 (my @snip = map $store->create({ text => "snippet $_" }), 1 .. $num_snips),
16 cmp_ok(scalar(@snip), '==', $num_snips, "$num_snips created");
18 is_deeply(\@snip, [ $store->all ], 'deep snippet check');
20 foreach my $snip (@snip) {
22 is($snip->{text}, $store->find($id)->{text}, "find by id $id ok");