Fixed tests to set config options at compile time before AtomBus module is loaded
Naveed Massjouni
12 years ago
2 | 2 |
use Dancer::Test;
|
3 | 3 |
|
4 | 4 |
use Dancer::Plugin::DBIC qw(schema);
|
5 | |
use AtomBus;
|
6 | 5 |
use Capture::Tiny qw(capture);
|
7 | 6 |
|
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;
|
13 | 16 |
|
14 | 17 |
my $xml1 = q{
|
15 | 18 |
<entry>
|
4 | 4 |
use URI;
|
5 | 5 |
use XML::XPath;
|
6 | 6 |
use Dancer::Plugin::DBIC qw(schema);
|
7 | |
use AtomBus;
|
8 | 7 |
use Capture::Tiny qw(capture);
|
9 | 8 |
|
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;
|
15 | 18 |
|
16 | 19 |
my $xml = q{
|
17 | 20 |
<entry>
|