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 +- t/003_hook_route.t | 2 +- t/data/hook_data.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ t/data/test.yaml | 43 ------------------------------------------- 4 files changed, 45 insertions(+), 45 deletions(-) create mode 100644 t/data/hook_data.yml delete mode 100644 t/data/test.yaml 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/"; diff --git a/t/003_hook_route.t b/t/003_hook_route.t index 0ce6771..cfd914b 100644 --- a/t/003_hook_route.t +++ b/t/003_hook_route.t @@ -14,7 +14,7 @@ use File::Temp qw/tempdir/; use Dancer::Test; use Dancer::Config qw/setting/; -my $content = LoadFile('t/data/test.yaml'); +my $content = LoadFile('t/data/hook_data.yml'); my $db_dir = tempdir( CLEANUP => 1 ); my $db_file = File::Spec->catfile( $db_dir, 'jitterbug.db' ); diff --git a/t/data/hook_data.yml b/t/data/hook_data.yml new file mode 100644 index 0000000..c8e1a63 --- /dev/null +++ b/t/data/hook_data.yml @@ -0,0 +1,43 @@ +--- +after: 22116bcdb229c1514f3069aaaf9c87e9d5455409 +before: db8d02317fce7fa2d8f5b75273302eee7b266b87 +commits: + - + added: [] + + author: + email: franck@lumberjaph.net + name: franck cuny + #id: 8c3c1d6be0fa27ada4f03258ddea7683c967a925 + id: ba54d9b7d82eabe4ba35ec212eb24d00869119d5 + message: test + modified: + - lib/Dancer.pm + removed: [] + + timestamp: 2010-09-23T08:04:42-07:00 + url: https://github.com/franckcuny/Dancer/commit/22116bcdb229c1514f3069aaaf9c87e9d5455409 +compare: https://github.com/franckcuny/Dancer/compare/db8d023...22116bc +forced: !!perl/scalar:JSON::XS::Boolean 0 +pusher: + email: franck@lumberjaph.net + name: franckcuny +ref: refs/heads/test +repository: + created_at: 2010/01/14 12:58:56 -0800 + description: Minimal-effort oriented web application framework for Perl (port of Ruby's Sinatra) + fork: !!perl/scalar:JSON::XS::Boolean 1 + forks: 0 + has_downloads: !!perl/scalar:JSON::XS::Boolean 1 + has_issues: !!perl/scalar:JSON::XS::Boolean 0 + has_wiki: !!perl/scalar:JSON::XS::Boolean 1 + homepage: '' + name: Dancer + open_issues: 0 + owner: + email: franck@lumberjaph.net + name: franckcuny + private: !!perl/scalar:JSON::XS::Boolean 1 + pushed_at: 2010/09/23 08:04:49 -0700 + url: https://github.com/sukria/Dancer + watchers: 1 diff --git a/t/data/test.yaml b/t/data/test.yaml deleted file mode 100644 index c8e1a63..0000000 --- a/t/data/test.yaml +++ /dev/null @@ -1,43 +0,0 @@ ---- -after: 22116bcdb229c1514f3069aaaf9c87e9d5455409 -before: db8d02317fce7fa2d8f5b75273302eee7b266b87 -commits: - - - added: [] - - author: - email: franck@lumberjaph.net - name: franck cuny - #id: 8c3c1d6be0fa27ada4f03258ddea7683c967a925 - id: ba54d9b7d82eabe4ba35ec212eb24d00869119d5 - message: test - modified: - - lib/Dancer.pm - removed: [] - - timestamp: 2010-09-23T08:04:42-07:00 - url: https://github.com/franckcuny/Dancer/commit/22116bcdb229c1514f3069aaaf9c87e9d5455409 -compare: https://github.com/franckcuny/Dancer/compare/db8d023...22116bc -forced: !!perl/scalar:JSON::XS::Boolean 0 -pusher: - email: franck@lumberjaph.net - name: franckcuny -ref: refs/heads/test -repository: - created_at: 2010/01/14 12:58:56 -0800 - description: Minimal-effort oriented web application framework for Perl (port of Ruby's Sinatra) - fork: !!perl/scalar:JSON::XS::Boolean 1 - forks: 0 - has_downloads: !!perl/scalar:JSON::XS::Boolean 1 - has_issues: !!perl/scalar:JSON::XS::Boolean 0 - has_wiki: !!perl/scalar:JSON::XS::Boolean 1 - homepage: '' - name: Dancer - open_issues: 0 - owner: - email: franck@lumberjaph.net - name: franckcuny - private: !!perl/scalar:JSON::XS::Boolean 1 - pushed_at: 2010/09/23 08:04:49 -0700 - url: https://github.com/sukria/Dancer - watchers: 1 -- cgit 1.4.1