summary refs log tree commit diff
path: root/t/spore-middleware/runtime.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-10-17 21:46:03 +0200
committerfranck cuny <franck@lumberjaph.net>2010-10-17 21:46:03 +0200
commit1c3ba5b29669ff002ff9650535ec019f4022e1e1 (patch)
tree6e9402fcf6c1db8440b1bf77469b0589f46a80dc /t/spore-middleware/runtime.t
parentremove couchdb api; add dummy spec for tests (diff)
downloadnet-http-spore-1c3ba5b29669ff002ff9650535ec019f4022e1e1.tar.gz
update tests to use the dummy api, and replace api_base_url with base_url
Diffstat (limited to 't/spore-middleware/runtime.t')
-rw-r--r--t/spore-middleware/runtime.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/spore-middleware/runtime.t b/t/spore-middleware/runtime.t
index e7509d6..07b2a63 100644
--- a/t/spore-middleware/runtime.t
+++ b/t/spore-middleware/runtime.t
@@ -5,20 +5,20 @@ use Test::More;
 use Net::HTTP::Spore;
 
 my $mock_server = {
-    '/test_spore/_all_docs' => sub {
+    '/show' => sub {
         my $req = shift;
         $req->new_response( 200, [ 'Content-Type' => 'text/plan' ], 'ok');
     },
 };
 
 ok my $client =
-  Net::HTTP::Spore->new_from_spec( 't/specs/couchdb.json',
-    api_base_url => 'http://localhost:5984' );
+  Net::HTTP::Spore->new_from_spec( 't/specs/api.json',
+    base_url => 'http://localhost:5984' );
 
 $client->enable('Runtime');
 $client->enable('Mock', tests => $mock_server);
 
-my $res = $client->get_all_documents(database => 'test_spore');
+my $res = $client->get_info();
 ok $res->header('X-Spore-Runtime');
 
 done_testing;