summary refs log tree commit diff
path: root/t/spore-method/payload.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-10-25 18:21:40 +0200
committerfranck cuny <franck@lumberjaph.net>2010-10-25 18:21:40 +0200
commit0e754169a099cd007d4a5abd72eae2832c34bc43 (patch)
treebedb00a1bb02d5a4bce4300aa3098327aa8b22e2 /t/spore-method/payload.t
parentapi spec can be modularized: (diff)
downloadnet-http-spore-0e754169a099cd007d4a5abd72eae2832c34bc43.tar.gz
add payload and form-data to the method object
Diffstat (limited to 't/spore-method/payload.t')
-rw-r--r--t/spore-method/payload.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/spore-method/payload.t b/t/spore-method/payload.t
new file mode 100644
index 0000000..07691dc
--- /dev/null
+++ b/t/spore-method/payload.t
@@ -0,0 +1,17 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Net::HTTP::Spore;
+
+my $api_with_payload = {
+    base_url => 'foo',
+    methods  => {
+        create_user => {
+            method           => 'POST',
+            path             => '/user',
+            payload_required => 1,
+        }
+    }
+};
+