summaryrefslogtreecommitdiff
path: root/t/spore/02_enable.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/02_enable.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 '')
-rw-r--r--t/spore/02_enable.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/spore/02_enable.t b/t/spore/02_enable.t
index 3f25606..2bd7402 100644
--- a/t/spore/02_enable.t
+++ b/t/spore/02_enable.t
@@ -16,11 +16,11 @@ sub call { 1 }
package main;
-my $couchdb_spec = 't/specs/couchdb.json';
-my %args = ( api_base_url => 'http://localhost:5984', );
-my $content < io($couchdb_spec);
+my $api_spec = 't/specs/api.json';
+my %args = ( base_url => 'http://localhost/', );
+my $content < io($api_spec);
-ok my $client = Net::HTTP::Spore->new_from_spec( $couchdb_spec, %args );
+ok my $client = Net::HTTP::Spore->new_from_spec( $api_spec, %args );
is scalar @{$client->middlewares}, 0, 'no middleware';