X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fticket_update_without_content.t;h=b4247abe3e61899cfc0968d3d6fe373f87c4a4a8;hb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;hp=595cb74e94d60ce0dcea5a208fed601d42227a50;hpb=b4b0c7e72d7eaee2fbfc7022022c9698323203dd;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..b4247abe3 100644 --- a/rt/t/web/ticket_update_without_content.t +++ b/rt/t/web/ticket_update_without_content.t @@ -1,12 +1,11 @@ -#!/usr/bin/env perl 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 +29,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");