summaryrefslogtreecommitdiff
path: root/t/01_basic.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-08-31 15:40:13 +0200
committerfranck cuny <franck@lumberjaph.net>2010-08-31 15:40:13 +0200
commit945412cd8fad832f7bea42ac3191867287a9a3c0 (patch)
treef6b70e8fce7eefaa2ad01f8d1d3f3ed053d50af6 /t/01_basic.t
downloadnet-http-api-spec-945412cd8fad832f7bea42ac3191867287a9a3c0.tar.gz
initial import
Diffstat (limited to 't/01_basic.t')
-rw-r--r--t/01_basic.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/01_basic.t b/t/01_basic.t
new file mode 100644
index 0000000..bf1d999
--- /dev/null
+++ b/t/01_basic.t
@@ -0,0 +1,12 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Net::HTTP::API::Spec;
+
+ok my $client = Net::HTTP::API::Spec->load_from_spec('t/spec/test1.json');
+
+my @methods = $client->meta->get_all_net_api_methods();
+is scalar @methods, 2;
+
+done_testing;