summary refs log tree commit diff
path: root/t/lib/FakeAPIFail.pm
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/FakeAPIFail.pm')
-rw-r--r--t/lib/FakeAPIFail.pm12
1 files changed, 5 insertions, 7 deletions
diff --git a/t/lib/FakeAPIFail.pm b/t/lib/FakeAPIFail.pm
index 80f1efa..87689bc 100644
--- a/t/lib/FakeAPIFail.pm
+++ b/t/lib/FakeAPIFail.pm
@@ -2,15 +2,13 @@ package FakeAPI;
 use Moose;
 use MooseX::Net::API;
 
-has api_base_url => (
-    is      => 'ro',
-    isa     => 'Str',
-    default => 'http://identi.ca/api',
+net_api_declare fake_api => (
+    base_url               => 'http://identi.ca/api',
+    format                 => 'json',
+    format_mode            => 'content-type',
+    require_authentication => 0,
 );
 
-has format => ( is => 'ro', isa => 'Str', default => 'json', );
-format_query 'format' => ( mode => 'content-type' );
-
 net_api_method foo => (
     description => 'this does foo',
     method      => 'GET',