summaryrefslogtreecommitdiff
path: root/t/spore-request/exception.t
diff options
context:
space:
mode:
Diffstat (limited to 't/spore-request/exception.t')
-rw-r--r--t/spore-request/exception.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/spore-request/exception.t b/t/spore-request/exception.t
index 5d5af38..fdf51cb 100644
--- a/t/spore-request/exception.t
+++ b/t/spore-request/exception.t
@@ -5,19 +5,19 @@ use Test::More;
use Net::HTTP::Spore;
my $mock_server = {
- '/test_spore/_all_docs' => sub {
+ '/show' => sub {
my $req = shift;
die;
},
};
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' );
$client->enable( 'Mock', tests => $mock_server );
-my $res = $client->get_all_documents(database => 'test_spore');
+my $res = $client->get_info();
is $res->[0], 599;
like $res->[2]->{error}, qr/Died/;