[Rt-commit] rt branch, reminders-fixes, updated. rt-3.9.7-1080-g39da36a

Shawn Moore sartak at bestpractical.com
Mon Dec 27 21:18:43 EST 2010


The branch, reminders-fixes has been updated
       via  39da36ab206bbce94b77d87b1bad4f4238f6ebd3 (commit)
      from  cc1486bd4711c160e484a3569b748ac2533c3f10 (commit)

Summary of changes:
 t/web/reminders.t |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 39da36ab206bbce94b77d87b1bad4f4238f6ebd3
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Dec 27 21:18:30 2010 -0500

    Make sure we don't inadvertantly reopen reminders

diff --git a/t/web/reminders.t b/t/web/reminders.t
index 34c9b63..f7daa3f 100644
--- a/t/web/reminders.t
+++ b/t/web/reminders.t
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use RT::Test tests => 34;
+use RT::Test tests => 35;
 
 my ($baseurl, $m) = RT::Test->started_ok;
 
@@ -61,7 +61,6 @@ is($reminder->Subject, 'changed the subject');
 is($reminder->Status, 'new');
 
 $m->goto_ticket($ticket->id);
-
 $m->form_name('UpdateReminders');
 $m->tick("Complete-Reminder-$reminder_id" => 1);
 $m->submit;
@@ -85,3 +84,14 @@ $m->text_contains('New reminder:', 'can create a new reminder');
 $m->text_contains('Check box to complete', "we DO display this text when there are reminders");
 $m->content_contains("changed the subject", "display the resolved reminder's subject");
 
+# make sure that when we submit the form, it doesn't accidentally reopen
+# resolved reminders
+$m->goto_ticket($ticket->id);
+$m->form_name('UpdateReminders');
+$m->submit;
+
+DBIx::SearchBuilder::Record::Cachable->FlushCache;
+$reminder = RT::Ticket->new($user);
+$reminder->Load($reminder_id);
+is($reminder->Status, 'resolved');
+

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


More information about the Rt-commit mailing list