[Rt-commit] rt branch, 4.4/single-pending-ticket, repushed
Dustin Graves
dustin at bestpractical.com
Wed Sep 23 10:47:55 EDT 2015
The branch 4.4/single-pending-ticket was deleted and repushed:
was 8b2484212c30bcd251e242196070696f9d838d3b
now ff78c6d6073990fc392c84797e582ddf1ff94f0c
1: 8b24842 ! 1: ff78c6d Show ticket number when pending on 1 ticket
@@ -31,3 +31,40 @@
return \'<a href="',$SearchURL,\'">', loc('(pending [quant,_1,other ticket,other tickets])',$count), \'</a>';
}
}
+
+diff --git a/t/web/pending-tickets.t b/t/web/pending-tickets.t
+new file mode 100644
+--- /dev/null
++++ b/t/web/pending-tickets.t
+@@
++use strict;
++use warnings;
++
++use RT::Test tests => 12;
++my ($baseurl, $m) = RT::Test->started_ok;
++my $url = $m->rt_base_url;
++ok $m->login, 'logged in';
++
++my @tickets;
++for my $ticket_num (1..3) {
++ my $t = RT::Ticket->new(RT->SystemUser);
++ $t->Create(Subject => "test $ticket_num", Queue => 'general', Owner => 'root');
++ ok(my $id = $t->id, "created ticket $ticket_num");
++ push @tickets, $t;
++}
++
++my ($t1, $t2, $t3) = @tickets;
++
++my ($status, $msg) = $t2->AddLink( Type => 'DependsOn', Base => $t1->id );
++ok($status, "created a link: $msg");
++
++($status, $msg) = $t3->AddLink( Type => 'DependsOn', Base => $t1->id );
++ok($status, "created a link: $msg");
++
++($status, $msg) = $t3->AddLink( Type => 'DependsOn', Base => $t2->id );
++ok($status, "created a link: $msg");
++
++$m->reload();
++
++$m->content_contains('pending ticket #'.$t3->id.'', 'single ticket pending text');
++$m->content_contains('pending 2 other tickets', 'multiple tickets pending text');
More information about the rt-commit
mailing list