[Rt-commit] rt branch, 4.4/groupdashboards-savedsearches-rights, repushed
Maureen Mirville
maureen at bestpractical.com
Fri Jan 26 11:12:46 EST 2018
The branch 4.4/groupdashboards-savedsearches-rights was deleted and repushed:
was ac982f053b9a41f741251d70ff7d098a0250dce3
now de018d89be6d7aa2c2aa545eb456b118bcec6de8
1: 166985638 = 1: 166985638 Fix bug on groups granted 'SeeGroupDashboard' or 'ShowSavedSearches'
2: ac982f053 ! 2: de018d89b Update tests for 'SeeGroupDashboard' or 'ShowSavedSearches' bug fix
@@ -66,3 +66,31 @@
+$m->content_contains("outer dashboard", "The dashboards menu includes outer dashboard");
+
+done_testing();
+
+diff --git a/t/web/saved_search_update.t b/t/web/saved_search_update.t
+--- a/t/web/saved_search_update.t
++++ b/t/web/saved_search_update.t
+@@
+ use strict;
+ use warnings;
+
+-use RT::Test tests => 18;
++use RT::Test tests => undef;
+
+ my $root = RT::User->new( $RT::SystemUser );
+ $root->Load('root');
+@@
+ my ($gid) = $group->CreateUserDefinedGroup( Name => 'foo' );
+ ok( $gid, 'created group foo');
+ ok( $group->AddMember( $root->PrincipalId ) );
++my ( $st, $msg ) = $group->PrincipalObj->GrantRight( Right => 'ShowSavedSearches', Object => $group );
++ok( $st, $msg );
+
+ my ( $baseurl, $m ) = RT::Test->started_ok;
+ ok($m->login, 'logged in');
+@@
+ is($m->value('SavedSearchOwner'), "RT::System-1", "privacy is correct");
+ is($m->value('SavedSearchDescription'), 'system_saved', "name is correct");
+
++undef $m;
++done_testing;
More information about the rt-commit
mailing list