[Rt-commit] rt branch, create-action, updated. 84fbc41a4d5ffcd532947e54b88f4980c7bf0823
sartak at bestpractical.com
sartak at bestpractical.com
Mon Nov 16 16:11:52 EST 2009
The branch, create-action has been updated
via 84fbc41a4d5ffcd532947e54b88f4980c7bf0823 (commit)
from 827a20f0abba6c308d5baee23cecd247155287cb (commit)
Summary of changes:
t/web/ticket_owner.t | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 84fbc41a4d5ffcd532947e54b88f4980c7bf0823
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Nov 16 16:11:08 2009 -0500
Pull out the owner from the now-jiftyfied form
diff --git a/t/web/ticket_owner.t b/t/web/ticket_owner.t
index 77155fa..54c6c4a 100644
--- a/t/web/ticket_owner.t
+++ b/t/web/ticket_owner.t
@@ -38,7 +38,10 @@ diag "current user has no right to own, nobody selected as owner on create" if $
$agent_a->content_like(qr/Create a new ticket/i, 'opened create ticket page');
my $form = $agent_a->form_name('ticket_create');
- is $form->value('owner'), RT->nobody->id, 'correct owner selected';
+ my $moniker = $agent_a->moniker_for('RT::Action::CreateTicket');
+ my $owner = $agent_a->action_field_value($moniker, 'owner');
+
+ is $owner, RT->nobody->id, 'correct owner selected';
ok !grep($_ == $user_a->id, $form->find_input('owner')->possible_values),
'user A can not own tickets';
$agent_a->submit;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list