From 1c3ba5b29669ff002ff9650535ec019f4022e1e1 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 17 Oct 2010 21:46:03 +0200 Subject: update tests to use the dummy api, and replace api_base_url with base_url --- t/spore/02_enable.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 't/spore/02_enable.t') 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'; -- cgit v1.2.3