projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
33970ff
)
- Tweaked the error tests to handle more verbose error output
Matt S Trout [Sat, 10 Dec 2005 02:22:32 +0000 (
02:22
+0000)]
t/lib/Catalyst/Plugin/Test/Errors.pm
patch
|
blob
|
blame
|
history
t/live_engine_response_errors.t
patch
|
blob
|
blame
|
history
diff --git
a/t/lib/Catalyst/Plugin/Test/Errors.pm
b/t/lib/Catalyst/Plugin/Test/Errors.pm
index
4dc0d57
..
92fa63c
100644
(file)
--- a/
t/lib/Catalyst/Plugin/Test/Errors.pm
+++ b/
t/lib/Catalyst/Plugin/Test/Errors.pm
@@
-21,7
+21,10
@@
sub error {
$c->response->status(500);
}
- $c->response->headers->push_header( 'X-Catalyst-Error' => $_[0] );
+ my $error = $_[0];
+ $error =~ s/\n/, /g;
+
+ $c->response->headers->push_header( 'X-Catalyst-Error' => $error );
$c->NEXT::error(@_);
}
diff --git
a/t/live_engine_response_errors.t
b/t/live_engine_response_errors.t
index
de7f92b
..
1fb8842
100644
(file)
--- a/
t/live_engine_response_errors.t
+++ b/
t/live_engine_response_errors.t
@@
-54,7
+54,7
@@
close STDERR; # i'm naughty :)
);
like(
$response->header('X-Catalyst-Error'),
- qr/"I'm going to die!"$/,
+ qr/I'm going to die!/,
'Catalyst Error'
);
}