[Rt-commit] rt branch, 4.2/test-web-done-testing, created. rt-4.2.11-46-g3925129
Dustin Graves
dustin at bestpractical.com
Fri Aug 7 14:59:23 EDT 2015
The branch, 4.2/test-web-done-testing has been created
at 3925129cc7e71a26b500a125ef3c2ea5f481f9d6 (commit)
- Log -----------------------------------------------------------------
commit 3925129cc7e71a26b500a125ef3c2ea5f481f9d6
Author: Dustin Graves <dustin at bestpractical.com>
Date: Fri Aug 7 18:57:30 2015 +0000
add helper text to explain RT::Test::Web objects must be destroyed before done_testing is called
diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index 74da61c..ec59d33 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -427,6 +427,11 @@ sub dom {
sub DESTROY {
my $self = shift;
+
+ if ( RT::Test->builder->{Done_Testing} ) {
+ die "RT::Test::Web object needs to be destroyed before done_testing is called";
+ }
+
if ( !$RT::Test::Web::DESTROY++ ) {
$self->no_warnings_ok;
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list