From 315236b6b34ae6dc2c85261b4b08d1e7881ba5ab Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 22 May 2011 19:56:08 -0700 Subject: Use catfile for portability --- eg/post_hook.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eg/post_hook.t') 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/"; -- cgit 1.4.1