[Rt-commit] r13570 - in rt/3.8/trunk: . etc/upgrade/3.7.3 t/web

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jun 24 16:17:39 EDT 2008


Author: sunnavy
Date: Tue Jun 24 16:17:38 2008
New Revision: 13570

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/etc/upgrade/3.7.3/schema.Pg
   rt/3.8/trunk/share/html/Ticket/Elements/ShowMembers
   rt/3.8/trunk/t/web/dashboards.t

Log:


Modified: rt/3.8/trunk/etc/upgrade/3.7.3/schema.Pg
==============================================================================
--- rt/3.8/trunk/etc/upgrade/3.7.3/schema.Pg	(original)
+++ rt/3.8/trunk/etc/upgrade/3.7.3/schema.Pg	Tue Jun 24 16:17:38 2008
@@ -1 +1 @@
-ALTER TABLE customfields ALTER COLUMN pattern TYPE VARCHAR(65536);
+ALTER TABLE customfields ALTER COLUMN pattern VARCHAR(65536);

Modified: rt/3.8/trunk/share/html/Ticket/Elements/ShowMembers
==============================================================================
--- rt/3.8/trunk/share/html/Ticket/Elements/ShowMembers	(original)
+++ rt/3.8/trunk/share/html/Ticket/Elements/ShowMembers	Tue Jun 24 16:17:38 2008
@@ -57,7 +57,6 @@
 
 <%INIT>
 
-return unless $Ticket;
 my $members = $Ticket->Members;
 return unless $members->Count;
 

Modified: rt/3.8/trunk/t/web/dashboards.t
==============================================================================
--- rt/3.8/trunk/t/web/dashboards.t	(original)
+++ rt/3.8/trunk/t/web/dashboards.t	Tue Jun 24 16:17:38 2008
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 use strict;
 
-use Test::More tests => 66;
+use Test::More tests => 59;
 use RT::Test;
 my ($baseurl, $m) = RT::Test->started_ok;
 
@@ -41,7 +41,6 @@
 $m->follow_link_ok({text => "New dashboard"});
 $m->form_name('ModifyDashboard');
 $m->field("Name" => 'different dashboard');
-$m->content_lacks('Delete', "Delete button hidden because we lack DeleteDashboard");
 $m->click_button(value => 'Save Changes');
 $m->content_lacks("No permission to create dashboards");
 $m->content_contains("Saved dashboard different dashboard");
@@ -148,18 +147,3 @@
 
 RT::Record->FlushCache if RT::Record->can('FlushCache');
 is($user_obj->Attributes->Named('Subscription'), 0, "no more subscriptions");
-
-$m->get_ok("/Dashboards/Modify.html?id=$id&Delete=1");
-$m->content_contains("Permission denied", "unable to delete dashboard because we lack DeleteDashboard");
-
-$user_obj->PrincipalObj->GrantRight(Right => 'DeleteDashboard');
-$m->get_ok("/Dashboards/Modify.html?id=$id");
-$m->content_contains('Delete', "Delete button shows because we have DeleteDashboard");
-
-$m->form_name('ModifyDashboard');
-$m->click_button(name => 'Delete');
-$m->content_contains("Deleted dashboard $id");
-
-$m->get("/Dashboards/Modify.html?id=$id");
-$m->content_contains("Could not load dashboard");
-


More information about the Rt-commit mailing list