File: load.t

package info (click to toggle)
libspoon-perl 0.24-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 296 kB
  • sloc: perl: 2,640; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use lib 't', 'lib';
use strict;
use warnings;
BEGIN { $^W = 1 }
use Test::More 'no_plan';

ok(eval {require Spoon; 1});
my $spoon = Spoon->new;
my $hub;
ok($hub = $spoon->load_hub);
$hub = $spoon->hub;
ok($hub);
ok($hub->config);
my %config = $hub->config->all;
my @classes = grep {
    s/_class$// and
      not /^registry$/;
} keys %config;

for my $class (@classes) {
    ok($hub->$class);
}