diff options
| author | franck cuny <franck@lumberjaph.net> | 2009-12-08 10:35:46 +0100 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2009-12-08 10:35:46 +0100 |
| commit | a2b7ab98ccb7083ad6bdda0839a1e2e6e21ea847 (patch) | |
| tree | 309219b95ca9846f53cc078a01baa2577d3399ab /t/lib/TestAPI.pm | |
| parent | Checking in changes prior to tagging of version 0.01. Changelog diff is: (diff) | |
| parent | small updates to tests (diff) | |
| download | net-http-api-a2b7ab98ccb7083ad6bdda0839a1e2e6e21ea847.tar.gz | |
Merge branch 'topic/create_tests'
* topic/create_tests:
small updates to tests
add a catalyst app to tests
add basic tests
remove meta class and method
move meta class and method to new file, add meta to handle tests
Diffstat (limited to '')
| -rw-r--r-- | t/lib/TestAPI.pm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/lib/TestAPI.pm b/t/lib/TestAPI.pm new file mode 100644 index 0000000..1f58351 --- /dev/null +++ b/t/lib/TestAPI.pm @@ -0,0 +1,19 @@ +package TestAPI; +use Moose; +use MooseX::Net::API; + +net_api_declare fake_api => ( + base_url => 'http://localhost/root', + format => 'json', + format_mode => 'content-type', + require_authentication => 0, +); + +net_api_method foo => ( + description => 'this does foo', + method => 'GET', + path => '/foo/', +); + +1; + |
