[Rt-commit] rt branch, admin_ui, updated. bbc4a2e2c04e2a4b55bef630e5fdd4e12a393400

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jan 21 08:53:28 EST 2010


The branch, admin_ui has been updated
       via  bbc4a2e2c04e2a4b55bef630e5fdd4e12a393400 (commit)
      from  0a6e0da1124734384b4b075f28fde0f8bb7807dd (commit)

Summary of changes:
 t/web/crypt-gnupg.t |    8 +++-----
 t/web/rights1.t     |    2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit bbc4a2e2c04e2a4b55bef630e5fdd4e12a393400
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Jan 21 21:53:20 2010 +0800

    update tests

diff --git a/t/web/crypt-gnupg.t b/t/web/crypt-gnupg.t
index a95a5b5..c727fd0 100644
--- a/t/web/crypt-gnupg.t
+++ b/t/web/crypt-gnupg.t
@@ -415,23 +415,21 @@ $user->set_email('general at example.com');
 ok($user = RT::Model::User->new(current_user => RT->system_user));
 ok($user->load('root'), "Loaded user 'root'");
 is($user->preferred_key, $key1, "preferred key is set correctly");
-$m->get("$baseurl/Prefs/Other.html");
+$m->get("$baseurl/prefs/other");
 $m->content_like( qr/Preferred key/, "preferred key option shows up in preference");
 
 # XXX: mech doesn't let us see the current value of the select, apparently
 $m->content_like( qr/$key1/, "first key shows up in preferences");
 $m->content_like( qr/$key2/, "second key shows up in preferences");
 $m->content_like( qr/$key1.*?$key2/s, "first key shows up before the second");
-
-$m->form_with_fields('preferred_key');
-$m->select("preferred_key" => $key2);
+$m->fill_in_action_ok( 'prefs_edit_other', preferred_key => $key2 );
 $m->submit;
 
 ok($user = RT::Model::User->new(current_user => RT->system_user));
 ok($user->load('root'), "Loaded user 'root'");
 is($user->preferred_key, $key2, "preferred key is set correctly to the new value");
 
-$m->get("$baseurl/Prefs/Other.html");
+$m->get("$baseurl/prefs/other");
 $m->content_like( qr/Preferred key/, "preferred key option shows up in preference");
 
 # XXX: mech doesn't let us see the current value of the select, apparently
diff --git a/t/web/rights1.t b/t/web/rights1.t
index 4e51ad7..137e0b1 100644
--- a/t/web/rights1.t
+++ b/t/web/rights1.t
@@ -33,7 +33,7 @@ $agent->login($user_obj->name => 'customer');
 # Test for absence of Configure and Preferences tabs.
 ok(!$agent->find_link( url => RT->config->get('web_path') . "/admin/",
 		       text => 'Configuration'), "No config tab" );
-ok(!$agent->find_link( url => RT->config->get('web_path') . "/User/Prefs.html",
+ok(!$agent->find_link( url => RT->config->get('web_path') . "/prefs/me",
 		       text => 'Preferences'), "No prefs pane" );
 
 # Now test for their presence, one at a time.  Sleep for a bit after

-----------------------------------------------------------------------


More information about the Rt-commit mailing list