[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-866-gbc1b22b

Shawn Moore sartak at bestpractical.com
Mon Dec 13 19:53:41 EST 2010


The branch, 3.9-trunk has been updated
       via  bc1b22ba50c2ed3a9671fc5bd98097490962b4e1 (commit)
      from  1c3d4b5c152efcee8e658f23e850f09a2384831a (commit)

Summary of changes:
 lib/RT/Test/Web.pm            |    2 +-
 t/web/offline_messages_utf8.t |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit bc1b22ba50c2ed3a9671fc5bd98097490962b4e1
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Dec 13 19:53:22 2010 -0500

    Fix some =~ qr//s

diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index 775e362..efffc4c 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -271,7 +271,7 @@ sub ticket_status {
     my $id = shift;
     
     $self->display_ticket( $id);
-    my ($got) = ($self->content =~ qr{Status:\s*</td>\s*<td[^>]*?class="value"[^>]*?>\s*([\w ]+?)\s*</td>}ism);
+    my ($got) = ($self->content =~ m{Status:\s*</td>\s*<td[^>]*?class="value"[^>]*?>\s*([\w ]+?)\s*</td>}ism);
     unless ( $got ) {
         Test::More::diag("Error: couldn't find status value on the page, may be regexp problem");
     }
diff --git a/t/web/offline_messages_utf8.t b/t/web/offline_messages_utf8.t
index 6894d6b..582cc27 100644
--- a/t/web/offline_messages_utf8.t
+++ b/t/web/offline_messages_utf8.t
@@ -38,7 +38,7 @@ EOF
         button    => 'UpdateTickets',
     );
     my $content = encode 'utf8', $m->content;
-    ok( $content =~ qr/申請單 #(\d+) 成功新增於 &#39;General&#39; 表單/, 'message is shown right' );
+    ok( $content =~ m/申請單 #(\d+) 成功新增於 &#39;General&#39; 表單/, 'message is shown right' );
     $ticket_id = $1;
 }
 

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


More information about the Rt-commit mailing list