diff options
Diffstat (limited to 'scripts/trigger_hook')
-rw-r--r-- | scripts/trigger_hook | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/trigger_hook b/scripts/trigger_hook index 7c031af..2e2f717 100644 --- a/scripts/trigger_hook +++ b/scripts/trigger_hook @@ -7,15 +7,14 @@ use jitterbug::Schema; use JSON; use YAML qw/LoadFile Dump/; -use File::Spec; use File::Temp qw/tempdir/; use Dancer::Test; use Dancer::Config qw/setting/; +use File::Spec::Functions; -my $content = LoadFile('t/data/test.yaml'); - -my $db_file = File::Spec->catfile( qw/jitterbug.db/ ); +my $content = LoadFile(catfile(qw/t data hook_data.yml/)); +my $db_file = catfile( qw/t data jitterbug.db/ ); my $dsn = 'dbi:SQLite:dbname=' . $db_file; my $schema = jitterbug::Schema->connect($dsn); # assume we have a deployed schema |