[Rt-commit] rt branch, 3.999-trunk, updated. 7af738f89515868eb7f555dd3d97cd8c78795239
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Nov 24 03:23:07 EST 2009
The branch, 3.999-trunk has been updated
via 7af738f89515868eb7f555dd3d97cd8c78795239 (commit)
from 32bd0cb6479a4ca3962c53ec6f81d9203d49cfd9 (commit)
Summary of changes:
t/web/gnupg-outgoing.t | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
- Log -----------------------------------------------------------------
commit 7af738f89515868eb7f555dd3d97cd8c78795239
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Nov 24 16:23:00 2009 +0800
rescue 2d1f0bb
diff --git a/t/web/gnupg-outgoing.t b/t/web/gnupg-outgoing.t
index 7f20488..e4f1750 100644
--- a/t/web/gnupg-outgoing.t
+++ b/t/web/gnupg-outgoing.t
@@ -103,18 +103,17 @@ diag "check in read-only mode that queue's props influence create/update ticket
set_queue_crypt_options( %$variant );
$m->goto_ticket( $id );
$m->follow_link_ok({text => 'Reply'}, '-> reply');
- my $encrypt = $m->action_field_input('create_ticket', 'encrypt');
- my $sign = $m->action_field_input('create_ticket', 'sign');
- if ( $variant->{'encrypt'} ) {
- ok $encrypt->value('encrypt'), "encrypt tick box is checked";
- } else {
- ok !$encrypt->value('encrypt'), "encrypt tick box is unchecked";
- }
- if ( $variant->{'sign'} ) {
- ok $sign->value('sign'), "sign tick box is checked";
- } else {
- ok !$sign->value('sign'), "sign tick box is unchecked";
- }
+ $m->form_name('ticket_update');
+ if ( $variant->{'encrypt'} ) {
+ ok $m->value('encrypt', 2), "encrypt tick box is checked";
+ } else {
+ ok !$m->value('encrypt', 2), "encrypt tick box is unchecked";
+ }
+ if ( $variant->{'sign'} ) {
+ ok $m->value('sign', 2), "sign tick box is checked";
+ } else {
+ ok !$m->value('sign', 2), "sign tick box is unchecked";
+ }
}
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list