[Rt-commit] r11176 - rtir/branches/2.3-EXPERIMENTAL/t/constituency
ruz at bestpractical.com
ruz at bestpractical.com
Mon Mar 24 22:22:49 EDT 2008
Author: ruz
Date: Mon Mar 24 22:22:49 2008
New Revision: 11176
Modified:
rtir/branches/2.3-EXPERIMENTAL/t/constituency/basics.t
Log:
* fix test
Modified: rtir/branches/2.3-EXPERIMENTAL/t/constituency/basics.t
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/t/constituency/basics.t (original)
+++ rtir/branches/2.3-EXPERIMENTAL/t/constituency/basics.t Mon Mar 24 22:22:49 2008
@@ -131,7 +131,7 @@
ok $queue->id, "loaded or created queue";
ok( RT::Test->add_rights(
{ Principal => $eduhandler, Object => $queue, Right => [qw(SeeQueue CreateTicket)] },
- { Principal => $eduhandler, Object => $queue, Right => [qw(SeeQueue CreateTicket)] },
+ { Principal => $govhandler, Object => $queue, Right => [qw(SeeQueue CreateTicket)] },
), 'set rights');
$queue = RT::Test->load_or_create_queue(
@@ -203,7 +203,7 @@
diag "move the incident report from EDUNET to GOVNET" if $ENV{'TEST_VERBOSE'};
-
+{
display_ticket($agent, $ir_id);
$agent->follow_link_ok({text => 'Edit'}, "go to Edit page");
$agent->form_number(3);
@@ -213,8 +213,8 @@
$agent->content_like( qr/GOVNET/, "value on the page" );
DBIx::SearchBuilder::Record::Cachable::FlushCache();
- $RT::IR::ConstituencyCache->{$ir_id} = undef;
-
+ $RT::IR::ConstituencyCache{$ir_id} = undef;
+}
diag "govhandler can see the incident report" if $ENV{'TEST_VERBOSE'};
$ticket_as_gov = RT::Ticket->new($govhandler);
More information about the Rt-commit
mailing list