aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-21 17:44:51 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-21 17:44:51 +0000
commit742618fee1347a7cc8b6967d268c2bf1f8d84255 (patch)
treebb61aea8b2d575268bebab3b273ab641cc1f17ac
parent19db35b42a5e74bdeb105ff69a4034a11cd4f4db (diff)
uncomment test and test for correct error message
-rw-r--r--t/open311.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/open311.t b/t/open311.t
index 1c7c7600d..99a1346d1 100644
--- a/t/open311.t
+++ b/t/open311.t
@@ -40,7 +40,7 @@ my $p = FixMyStreet::App->model('DB::Problem')->new( {
my $expected_error = qr{.*request failed: 500 Can.t connect to 192.168.50.1:80 \([^)]*\).*};
-#warning_like {$o2->send_service_request( $p, { url => 'http://example.com/' }, 1 )} $expected_error, 'warning generated on failed call';
+warning_like {$o2->send_service_request( $p, { url => 'http://example.com/' }, 1 )} $expected_error, 'warning generated on failed call';
my $dt = DateTime->now();
@@ -156,7 +156,7 @@ subtest 'error reponse' => sub {
my $results;
warning_like {
$results = make_update_req( $comment, '<?xml version="1.0" encoding="utf-8"?><errors><error><code>400</code><description>There was an error</description</error></errors>' )
- } qr/Failed to submit comment \d+ over Open311/, 'correct error message';
+ } qr/There was an error/, 'correct error message';
is $results->{ res }, 0, 'error in response is a failure';
};