[Rt-commit] rt branch, 4.2/bookmarks-in-lib, updated. rt-4.0.0rc6-162-gd4e458b
Shawn Moore
sartak at bestpractical.com
Tue Mar 8 15:02:15 EST 2011
The branch, 4.2/bookmarks-in-lib has been updated
via d4e458bfd7ca89496b34eabe73543e7a36217678 (commit)
from 2205ca5ae8213b30b1ff422f264f6b741f89eb45 (commit)
Summary of changes:
t/web/mobile.t | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit d4e458bfd7ca89496b34eabe73543e7a36217678
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Mar 8 15:02:08 2011 -0500
Don't frob Bookmarks config directly in a test
diff --git a/t/web/mobile.t b/t/web/mobile.t
index 7cf9aee..e00af5a 100644
--- a/t/web/mobile.t
+++ b/t/web/mobile.t
@@ -179,7 +179,10 @@ ok( $m->find_link( text_regex => qr/ticket2/ ), 'has ticket2 link' );
$m->back;
diag "test bookmarked tickets link";
-$root->SetAttribute( Name => 'Bookmarks', Content => { 11 => 1 } );
+my $ticket = RT::Ticket->new(RT::CurrentUser->new('root'));
+$ticket->Load(11);
+$ticket->ToggleBookmark;
+
$m->follow_link_ok( { text => 'Bookmarked tickets' } );
$m->content_contains( 'Found 1 ticket', 'found 1 ticket' );
ok( $m->find_link( text_regex => qr/ticket1/ ), 'has ticket1 link' );
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list