From 5fdee9e79b5b6a72522bee59e4bd7c62506a43c7 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 16 Jul 2010 16:12:32 +0200 Subject: remove tests and old lib; use base net::http::api; DEPRECATED --- t/04_apimethod.t | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 t/04_apimethod.t (limited to 't/04_apimethod.t') diff --git a/t/04_apimethod.t b/t/04_apimethod.t deleted file mode 100644 index cac2715..0000000 --- a/t/04_apimethod.t +++ /dev/null @@ -1,36 +0,0 @@ -use strict; -use warnings; -use Test::More; -use Test::Exception; -use MooseX::Net::API::Meta::Method; - -dies_ok { - MooseX::Net::API::Meta::Method->wrap( - name => 'test_method', - package_name => 'test::api', - body => sub {1}, - ); -} -"missing some params"; - -ok my $method = MooseX::Net::API::Meta::Method->wrap( - name => 'test_method', - package_name => 'test::api', - body => sub {1}, - method => 'GET', - path => '/user/', - ), - 'method created'; - -is $method->method, 'GET', 'method is GET'; - -ok $method = MooseX::Net::API::Meta::Method->wrap( - name => 'test_method', - package_name => 'test::api', - method => 'GET', - path => '/user/', - params => [qw/name id street/], - required => [qw/name id/], -); - -done_testing; -- cgit v1.2.3