Codebase list libatombus-perl / 510a5b2
Fixed tests to set config options at compile time before AtomBus module is loaded Naveed Massjouni 12 years ago
2 changed file(s) with 18 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
22 use Dancer::Test;
33
44 use Dancer::Plugin::DBIC qw(schema);
5 use AtomBus;
65 use Capture::Tiny qw(capture);
76
8 set atombus => {
9 db => {
10 dsn => 'dbi:SQLite:dbname=:memory:',
11 }
12 };
7 BEGIN {
8 set atombus => {
9 db => {
10 dsn => 'dbi:SQLite:dbname=:memory:',
11 }
12 };
13 }
14
15 use AtomBus;
1316
1417 my $xml1 = q{
1518 <entry>
44 use URI;
55 use XML::XPath;
66 use Dancer::Plugin::DBIC qw(schema);
7 use AtomBus;
87 use Capture::Tiny qw(capture);
98
10 set atombus => {
11 db => {
12 dsn => 'dbi:SQLite:dbname=:memory:',
13 }
14 };
9 BEGIN {
10 set atombus => {
11 db => {
12 dsn => 'dbi:SQLite:dbname=:memory:',
13 }
14 };
15 }
16
17 use AtomBus;
1518
1619 my $xml = q{
1720 <entry>