- CPAN Bug# 23587: _pre_submit() would return success if fraud detection is
[Business-OnlinePayment.git] / t / bop.t
diff --git a/t/bop.t b/t/bop.t
index 8eb762d..d34ed76 100644 (file)
--- a/t/bop.t
+++ b/t/bop.t
@@ -115,7 +115,8 @@ foreach my $drv (@drivers) {
 
     is( $obj->fraud_detect($bogus), $bogus, "fraud_detect set to '$bogus'" );
     eval { $obj->submit; };
-    is( $@, "", "fraud_detect ignores non-existant processors" );
+    like( $@, qr/^Unable to locate fraud_detection /,
+          "fraud_detect with unknown processor croaks" );
 
     is( $obj->fraud_detect($valid), $valid, "fraud_detect set to '$valid'" );
     eval { $obj->submit; };