[Rt-commit] rt branch, 4.0/reminders-of-deleted-tickets, updated. rt-4.0.5-90-g5aa59da
Alex Vandiver
alexmv at bestpractical.com
Fri Mar 23 19:21:20 EDT 2012
The branch, 4.0/reminders-of-deleted-tickets has been updated
via 5aa59dae7da5cb6bb8ff850edd5004c609e9a7db (commit)
from bb5f14a2ad755ebe0df4c4b131364570fa0648b1 (commit)
Summary of changes:
t/web/reminders.t | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 5aa59dae7da5cb6bb8ff850edd5004c609e9a7db
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Mar 23 19:21:16 2012 -0400
Fix tests for no longer giving a useless "New reminder" box on deleted tickets
diff --git a/t/web/reminders.t b/t/web/reminders.t
index 147a39c..7d62b73 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 => 41;
+use RT::Test tests => 45;
my ($baseurl, $m) = RT::Test->started_ok;
@@ -38,10 +38,12 @@ $m->content_contains("Can't link to a deleted ticket");
$m->get_ok('/Tools/MyReminders.html');
$m->content_contains( "baby's first reminder",
'got the reminder even the ticket is deleted' );
-$m->goto_ticket( $ticket->id );
-$ticket->SetStatus('new');
-is( $ticket->Status, 'new', 'changed back to new' );
+$m->goto_ticket( $ticket->id );
+$m->content_lacks('New reminder:', "can't create a new reminder");
+$m->text_contains('Check box to complete', "we DO display this text when there are reminders");
+$m->content_like(qr{<th[^>]*>Reminders?</th>}, "now we have a reminder titlebar");
+$m->text_contains("baby's first reminder", "display the reminder's subject");
my $reminders = RT::Reminders->new($user);
$reminders->Ticket($ticket->id);
@@ -52,7 +54,11 @@ is($reminder->Subject, "baby's first reminder");
my $reminder_id = $reminder->id;
is($reminder->Status, 'new');
-$m->text_contains('New reminder:', 'can create a new reminder');
+$ticket->SetStatus('new');
+is( $ticket->Status, 'new', 'changed back to new' );
+
+$m->goto_ticket($ticket->id);
+$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_like(qr{<th[^>]*>Reminders?</th>}, "now we have a reminder titlebar");
$m->text_contains("baby's first reminder", "display the reminder's subject");
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list