about summary refs log tree commit diff
path: root/t/lib/FakeAPIFail.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-11-26 18:11:34 +0100
committerfranck cuny <franck@lumberjaph.net>2009-11-26 18:11:34 +0100
commitb8b8bb3d166081a02c85ce4cb4f7c28aca2f2166 (patch)
treee9aa3575e0c521c96510dd22bbf10c2f16405c9c /t/lib/FakeAPIFail.pm
parentadd error (diff)
downloadnet-http-api-b8b8bb3d166081a02c85ce4cb4f7c28aca2f2166.tar.gz
add more tests
Diffstat (limited to 't/lib/FakeAPIFail.pm')
-rw-r--r--t/lib/FakeAPIFail.pm21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/lib/FakeAPIFail.pm b/t/lib/FakeAPIFail.pm
new file mode 100644
index 0000000..80f1efa
--- /dev/null
+++ b/t/lib/FakeAPIFail.pm
@@ -0,0 +1,21 @@
+package FakeAPI;
+use Moose;
+use MooseX::Net::API;
+
+has api_base_url => (
+    is      => 'ro',
+    isa     => 'Str',
+    default => 'http://identi.ca/api',
+);
+
+has format => ( is => 'ro', isa => 'Str', default => 'json', );
+format_query 'format' => ( mode => 'content-type' );
+
+net_api_method foo => (
+    description => 'this does foo',
+    method      => 'GET',
+    path        => '/foo/',
+    required    => [qw/bar/],
+);
+
+1;