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

Jifty commits jifty-commit at lists.jifty.org
Thu Feb 5 07:10:00 EST 2009


Author: sunnavy
Date: Thu Feb  5 07:10:00 2009
New Revision: 6308

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

Log:
tiny improve

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 Feb  5 07:10:00 2009
@@ -454,7 +454,7 @@
 
 sub no_warnings_ok {
     my $self = shift;
-    my $name = shift || "no warnings emitted";
+    my $reason = shift || "no warnings emitted";
 
     local $Test::Builder::Level = $Test::Builder::Level;
     $Test::Builder::Level++;
@@ -462,9 +462,9 @@
     my $plugin   = Jifty->find_plugin("Jifty::Plugin::TestServerWarnings");
     my @warnings = $plugin->decoded_warnings( $self->uri );
 
-    Test::More::is( @warnings, 0, $name );
+    is( @warnings, 0, $reason );
     for (@warnings) {
-        Test::More::diag("got warning: $_");
+        diag("got warning: $_");
     }
 }
 


More information about the Jifty-commit mailing list