[Jifty-commit] r6758 - jifty/trunk/lib/Jifty/Test/WWW

Jifty commits jifty-commit at lists.jifty.org
Thu Apr 9 18:40:00 EDT 2009


Author: alexmv
Date: Thu Apr  9 18:40:00 2009
New Revision: 6758

Modified:
   jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm

Log:
Document new warnings checking methods

Modified: jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm	(original)
+++ jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm	Thu Apr  9 18:40:00 2009
@@ -435,6 +435,15 @@
     }
 }
 
+=head2 warnings_like WARNING, [REASON]
+
+Tests that the warnings generated by the server (since the last such
+check) match the given C<WARNING>, which should be a regular
+expression.  If an array reference of regular expressions is passed as
+C<WARNING>, checks that one warning per element was received.
+
+=cut
+
 sub warnings_like {
     my $self = shift;
     my @args = shift;
@@ -452,6 +461,13 @@
     }
 }
 
+=head2 no_warnings_ok [REASON]
+
+Checks that no warnings were generated by the server (since the last
+such check).
+
+=cut
+
 sub no_warnings_ok {
     my $self = shift;
     my $reason = shift || "no warnings emitted";


More information about the Jifty-commit mailing list