From 20eca1a1c886da75a8c80a5dc8d8cdab25e83092 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Tue, 8 Dec 2009 10:28:03 +0100 Subject: Checking in changes prior to tagging of version 0.01. Changelog diff is: --- t/lib/FakeAPIFail2.pm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 't/lib/FakeAPIFail2.pm') diff --git a/t/lib/FakeAPIFail2.pm b/t/lib/FakeAPIFail2.pm index 8ec10c8..1d1725b 100644 --- a/t/lib/FakeAPIFail2.pm +++ b/t/lib/FakeAPIFail2.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 baz => ( description => 'this one does baztwo', method => 'BAZ', -- cgit v1.2.3