[Bps-public-commit] rt-extension-notificationmatrix branch, master, updated. 304a850b880e835bc6299d8a04ab5c3915d8a873

Chia-liang Kao clkao at bestpractical.com
Fri Sep 10 10:29:03 EDT 2010


The branch, master has been updated
       via  304a850b880e835bc6299d8a04ab5c3915d8a873 (commit)
      from  91bfa3259acf2f77346bb4c278ce4cb15206a3ed (commit)

Summary of changes:
 t/basic.t |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 304a850b880e835bc6299d8a04ab5c3915d8a873
Author: Chia-liang Kao <clkao at clkao.org>
Date:   Thu Sep 9 23:01:09 2010 +0800

    more tests

diff --git a/t/basic.t b/t/basic.t
index d049425..c16bfcd 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -10,7 +10,7 @@ BEGIN {
 }
 
 use RT;
-use RT::Test tests => 26;
+use RT::Test tests => 29;
 use RT::Test::Email;
 RT->Config->Set( LogToScreen => 'debug' );
 RT->Config->Set('Plugins',qw(RT::Extension::NotificationMatrix));
@@ -250,6 +250,27 @@ mail_ok {
 
 
 
+my $matrix = { TicketUpdatedExternally => [ $admincc->id ],
+               TicketCommented => [ $admincc->id ],
+           };
+
+$q->SetAttribute(Name => 'NotificationMatrix',
+                 Description => 'Notification Matrix Internal Data',
+                 Content => $matrix);
+
+
+mail_ok {
+    my $cu = RT::CurrentUser->new;
+    $cu->Load( $users{user_b} );
+    $t->SetCurrentUser($cu);
+
+    my ($res, $msg) = $t->Comment(Content => "foobar");
+    ok($res, $msg);
+} { from => qr'USER_B via RT',
+    bcc => 'user_c at example.com',
+    subject => qr/\[Comment\]/,
+    body => qr/not sent to the Requestor.*foobar/s,
+};
 
 
 #my ($baseurl, $m) = RT::Test->started_ok;

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



More information about the Bps-public-commit mailing list