[Rt-commit] rt branch, admin_ui, updated. 9b971603365ee693b7b7011663e1620c19354ee3
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 28 06:14:42 EST 2010
The branch, admin_ui has been updated
via 9b971603365ee693b7b7011663e1620c19354ee3 (commit)
from d4cca3128887e55a5ed7f3e548724e0812977ef4 (commit)
Summary of changes:
t/web/admin/global_myrt.t | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 9b971603365ee693b7b7011663e1620c19354ee3
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jan 28 18:42:14 2010 +0800
test array value for body in ConfigMyRT
diff --git a/t/web/admin/global_myrt.t b/t/web/admin/global_myrt.t
index 0b594f9..b9acdad 100644
--- a/t/web/admin/global_myrt.t
+++ b/t/web/admin/global_myrt.t
@@ -1,7 +1,7 @@
#!/usr/bin/env perl
use strict;
-use RT::Test strict => 0, tests => 5, l10n => 1;
+use RT::Test strict => 0, tests => 6, l10n => 1;
my ( $baseurl, $agent ) = RT::Test->started_ok;
ok( $agent->login, 'logged in' );
@@ -10,7 +10,8 @@ $agent->get_ok('/admin/global/my_rt');
my $moniker = 'global_config_my_rt';
$agent->fill_in_action_ok(
$moniker,
- summary => 'component-CreateTicket',
+ body => [ 'system-MyTickets', 'component-MyReminders' ],
+ summary => 'component-CreateTicket',
);
$agent->submit;
@@ -18,3 +19,27 @@ $agent->content_contains(
'Updated myrt', 'updated myrt'
);
+my ($settings) = RT->system->attributes->named('HomepageSettings');
+is_deeply(
+ $settings->content,
+ {
+ 'body' => [
+ {
+ 'name' => 'MyTickets',
+ 'type' => 'system'
+ },
+ {
+ 'name' => 'MyReminders',
+ 'type' => 'component'
+ }
+ ],
+ 'summary' => [
+ {
+ 'name' => 'CreateTicket',
+ 'type' => 'component'
+ }
+ ]
+ },
+ 'myrt is indeed updated'
+);
+
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list