diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-10-17 21:46:03 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-10-17 21:46:03 +0200 |
| commit | 1c3ba5b29669ff002ff9650535ec019f4022e1e1 (patch) | |
| tree | 6e9402fcf6c1db8440b1bf77469b0589f46a80dc /t/spore/02_enable.t | |
| parent | remove couchdb api; add dummy spec for tests (diff) | |
| download | net-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/02_enable.t')
| -rw-r--r-- | t/spore/02_enable.t | 8 |
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'; |
