summaryrefslogtreecommitdiff
path: root/eg/post_hook.t
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--eg/post_hook.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/eg/post_hook.t b/eg/post_hook.t
index 3715abc..4165f46 100644
--- a/eg/post_hook.t
+++ b/eg/post_hook.t
@@ -5,8 +5,9 @@ use LWP::UserAgent;
use HTTP::Request::Common;
use YAML qw/LoadFile/;
use JSON;
+use File::Spec::Functions;
-my $content = LoadFile('t/data/test.yaml');
+my $content = LoadFile(catfile(qw/t data hook_data.yml/));
my $payload = JSON::encode_json($content);
my $url = "http://localhost:5000/hook/";