diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-22 20:07:01 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-22 20:07:01 -0700 |
commit | 84fbb8ac93b7a17e8bbd376faf40a4eb250a30ef (patch) | |
tree | c89ac737c45da838a38af92524d577a6e7feac94 /scripts | |
parent | Use catfile for portability (diff) | |
download | jitterbug-84fbb8ac93b7a17e8bbd376faf40a4eb250a30ef.tar.gz |
Use test db
Diffstat (limited to '')
-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 |