[Rt-commit] r14209 - rt/branches/3.999-DANGEROUS/t/shredder
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jul 17 07:31:57 EDT 2008
Author: sunnavy
Date: Thu Jul 17 07:31:44 2008
New Revision: 14209
Modified:
rt/branches/3.999-DANGEROUS/t/shredder/02group_member.t
Log:
owner is not in role_group
Modified: rt/branches/3.999-DANGEROUS/t/shredder/02group_member.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/shredder/02group_member.t (original)
+++ rt/branches/3.999-DANGEROUS/t/shredder/02group_member.t Thu Jul 17 07:31:44 2008
@@ -90,7 +90,7 @@
ok( $status, "owner successfuly set") or diag( "error: $msg" );
is( $ticket->owner, $user->id, "owner successfuly set") or diag( "error: $msg" );
- my $member = $ticket->role_group("owner")->members_obj->first;
+ my $member = $ticket->owner_obj;
my $shredder = shredder_new();
$shredder->put_objects( objects => $member );
$shredder->wipeout_all();
@@ -99,5 +99,5 @@
($status, $msg) = $ticket->load( $id );
ok( $id, "load ticket" ) or diag( "error: $msg" );
is( $ticket->owner, RT->nobody->id, "owner switched back to nobody" );
- is( $ticket->role_group("owner")->members_obj->first->member_id, RT->nobody->id, "and owner role group member is nobody");
+ is( $ticket->owner_obj->id, RT->nobody->id, "and owner role group member is nobody");
}
More information about the Rt-commit
mailing list