Author: ivorw
Date: 2006-03-05 10:39:39 +0000 (Sun, 05 Mar 2006)
New Revision: 737
Modified:
trunk/t/31_search.t
Log:
Fixed #88
Redirect test can now cope with both 302 Moved and 302 Found
Modified: trunk/t/31_search.t
===================================================================
--- trunk/t/31_search.t 2006-02-22 22:10:50 UTC (rev 736)
+++ trunk/t/31_search.t 2006-03-05 10:39:39 UTC (rev 737)
@@ -81,7 +81,7 @@
return_output => 1,
vars => { search => "weebl" },
);
- unlike( $output, qr/Status: 302 Moved/,
+ unlike( $output, qr/Status: 302 (?:Moved|Found)/,
"no redirect if match only in body");
# One hit in title should redirect to that page.
@@ -89,7 +89,7 @@
return_output => 1,
vars => { search => "want pie now"
},
);
- like( $output, qr/Status: 302 Moved/,
+ like( $output, qr/Status: 302 (?:Moved|Found)/,
"prints redirect on single hit and match in title" );
# Old versions of CGI.pm mistakenly print location: instead of Location:
like( $output,
Show replies by thread