[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-22-g37683bc

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Oct 23 04:12:19 EDT 2009


The branch, 3.8-trunk has been updated
       via  37683bce2e2b5e5d72a68f5cc6767435556958e5 (commit)
      from  60491e9698361f7d74129ced60edcefc3b1ab57a (commit)

Summary of changes:
 t/web/ticket_update_without_content.t |   54 +++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)
 create mode 100644 t/web/ticket_update_without_content.t

- Log -----------------------------------------------------------------
commit 37683bce2e2b5e5d72a68f5cc6767435556958e5
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 23 15:56:36 2009 +0800

    added t/web/ticket_update_without_content.t

diff --git a/t/web/ticket_update_without_content.t b/t/web/ticket_update_without_content.t
new file mode 100644
index 0000000..1ffa896
--- /dev/null
+++ b/t/web/ticket_update_without_content.t
@@ -0,0 +1,54 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+use RT::Test tests => 10;
+my ( $url, $m ) = RT::Test->started_ok;
+
+# merged tickets still show up in search
+my $ticket = RT::Ticket->new($RT::SystemUser);
+my ( $ret, $msg ) = $ticket->Create(
+    Subject   => 'base ticket' . $$,
+    Queue     => 'general',
+    Owner     => 'root',
+    Requestor => 'root at localhost',
+    MIMEObj   => MIME::Entity->build(
+        From    => 'root at localhost',
+        To      => 'rt at localhost',
+        Subject => 'base ticket' . $$,
+        Data    => "",
+    ),
+);
+ok( $ret, "ticket created: $msg" );
+
+ok( $m->login, 'logged in' );
+
+$m->get( $url . "/Ticket/ModifyAll.html?id=" . $ticket->id );
+is( $m->{'status'}, 200, "Loaded ModifyAll.html" );
+
+$m->submit_form(
+    form_number => 3,
+    fields      => { Priority => '1', }
+);
+
+$m->content_like(qr/priority changed/i);
+$m->content_unlike(qr/message recorded/i);
+
+my $root = RT::User->new( $RT::SystemUser );
+$root->Load('root');
+( $ret, $msg ) = $root->SetSignature(<<EOF);
+best wishes
+foo
+EOF
+
+ok( $ret, $msg );
+
+$m->get( $url . "/Ticket/ModifyAll.html?id=" . $ticket->id );
+is( $m->{'status'}, 200, "Loaded ModifyAll.html" );
+
+$m->submit_form(
+    form_number => 3,
+    fields      => { Priority => '2', }
+);
+$m->content_like(qr/priority changed/i);
+$m->content_unlike(qr/message recorded/i);

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


More information about the Rt-commit mailing list