[Rt-commit] rt branch, 4.0/test-warnings, updated. rt-4.0.0-179-gc9569e6

Shawn Moore sartak at bestpractical.com
Tue May 3 13:31:01 EDT 2011


The branch, 4.0/test-warnings has been updated
       via  c9569e64752cce0da3f1fd640301608876b06acc (commit)
      from  ff0bda731aed079cd0c3db54310a59316ac97c91 (commit)

Summary of changes:
 t/api/tickets_overlay_sql.t |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

- Log -----------------------------------------------------------------
commit c9569e64752cce0da3f1fd640301608876b06acc
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue May 3 13:29:37 2011 -0400

    Improve tickets_overlay_sql.t's style
    
        Remove the whole-file block delimiting use strict's scope and
        remove some spurious "use" lines.

diff --git a/t/api/tickets_overlay_sql.t b/t/api/tickets_overlay_sql.t
index e0e66d1..9f91111 100644
--- a/t/api/tickets_overlay_sql.t
+++ b/t/api/tickets_overlay_sql.t
@@ -1,14 +1,8 @@
-
-use RT;
+use strict;
+use warnings;
 use RT::Test tests => 20, config => 'Set( %FullTextSearch, Enable => 1 );';
 use Test::Warn;
 
-
-{
-
-use RT::Tickets;
-use strict;
-
 my $tix = RT::Tickets->new(RT->SystemUser);
 {
     my $query = "Status = 'open'";
@@ -97,5 +91,3 @@ diag "Make sure we don't barf on invalid input for IS / IS NOT";
     like $tix->First->Subject, qr/another ticket/, "found the right ticket";
 }
 
-}
-

-----------------------------------------------------------------------


More information about the Rt-commit mailing list