X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fticket_update_without_content.t;h=54f0c5a8aa658ef70898154b8db511d9ffd24456;hb=6587f6ba7d047ddc1686c080090afe7d53365bd4;hp=595cb74e94d60ce0dcea5a208fed601d42227a50;hpb=47153aae5c2fc00316654e7277fccd45f72ff611;p=freeside.git diff --git a/rt/t/web/ticket_update_without_content.t b/rt/t/web/ticket_update_without_content.t index 595cb74e9..54f0c5a8a 100644 --- a/rt/t/web/ticket_update_without_content.t +++ b/rt/t/web/ticket_update_without_content.t @@ -2,11 +2,11 @@ use strict; use warnings; -use RT::Test tests => 10; +use RT::Test tests => 12; my ( $url, $m ) = RT::Test->started_ok; # merged tickets still show up in search -my $ticket = RT::Ticket->new($RT::SystemUser); +my $ticket = RT::Ticket->new(RT->SystemUser); my ( $ret, $msg ) = $ticket->Create( Subject => 'base ticket' . $$, Queue => 'general', @@ -30,10 +30,10 @@ $m->submit_form( fields => { Priority => '1', } ); -$m->content_like(qr/priority changed/i); -$m->content_unlike(qr/message recorded/i); +$m->content_contains("Priority changed"); +$m->content_lacks("message recorded"); -my $root = RT::User->new( $RT::SystemUser ); +my $root = RT::User->new( RT->SystemUser ); $root->Load('root'); ( $ret, $msg ) = $root->SetSignature(<submit_form( form_number => 3, fields => { Priority => '2', } ); -$m->content_like(qr/priority changed/i); -$m->content_unlike(qr/message recorded/i); +$m->content_contains("Priority changed"); +$m->content_lacks("message recorded");