From ebd747bd5cb533f9f3df63c533b04df61950f9da Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 22 May 2011 19:52:50 -0700 Subject: Rename our hook data YAML to be more descriptive --- eg/post_hook.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eg/post_hook.t') diff --git a/eg/post_hook.t b/eg/post_hook.t index 3715abc..8e2e9e6 100644 --- a/eg/post_hook.t +++ b/eg/post_hook.t @@ -6,7 +6,7 @@ use HTTP::Request::Common; use YAML qw/LoadFile/; use JSON; -my $content = LoadFile('t/data/test.yaml'); +my $content = LoadFile('t/data/hook_data.yml'); my $payload = JSON::encode_json($content); my $url = "http://localhost:5000/hook/"; -- cgit v1.2.3 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 v1.2.3