summaryrefslogtreecommitdiff
path: root/t/04_apimethod.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-07-16 16:12:32 +0200
committerfranck cuny <franck@lumberjaph.net>2010-07-16 16:12:32 +0200
commit5fdee9e79b5b6a72522bee59e4bd7c62506a43c7 (patch)
tree9e9f16e674310d95f7c39cea92e87aaa57d67746 /t/04_apimethod.t
parentanother fix for path (diff)
downloadmoosex-net-api-5fdee9e79b5b6a72522bee59e4bd7c62506a43c7.tar.gz
remove tests and old lib; use base net::http::api; DEPRECATED
Diffstat (limited to 't/04_apimethod.t')
-rw-r--r--t/04_apimethod.t36
1 files changed, 0 insertions, 36 deletions
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;