summaryrefslogtreecommitdiff
path: root/t/lib/FakeAPIFail2.pm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--t/lib/FakeAPIFail2.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/lib/FakeAPIFail2.pm b/t/lib/FakeAPIFail2.pm
new file mode 100644
index 0000000..8ec10c8
--- /dev/null
+++ b/t/lib/FakeAPIFail2.pm
@@ -0,0 +1,24 @@
+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 baz => (
+ description => 'this one does baztwo',
+ method => 'BAZ',
+ path => '/baz/',
+ params => [qw/foo/],
+ required => [qw/bla/],
+);
+
+sub get_foo { return 1; }
+
+1;