projects
/
urisagit/Stem.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5f9053466daeb797ea3d8b94ff8191c2ed6f4b18
[urisagit/Stem.git]
/
t
/
config
/
test_stem_bug.pl
1
#!/usr/bin/env perl
2
3
use strict ;
4
use warnings ;
5
use Test::More tests => 2;
6
use Test::Exception;
7
8
use_ok( 'Stem' );
9
10
my @config = (
11
{ class => 'Foobar', },
12
{ class => 'Stem::Console', },
13
) ;
14
15
16
lives_ok( sub { Stem::Conf::configure( \@config ) }, 'load config from data structure' );
17
18
package Foobar ;
19
20
sub foobar_cmd { return "FOOBAR!!!\n" }
21
22