diff options
Diffstat (limited to 'eg/post_hook.t')
-rw-r--r-- | eg/post_hook.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eg/post_hook.t b/eg/post_hook.t index 8e2e9e6..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/hook_data.yml'); +my $content = LoadFile(catfile(qw/t data hook_data.yml/)); my $payload = JSON::encode_json($content); my $url = "http://localhost:5000/hook/"; |