summaryrefslogtreecommitdiff
path: root/spec/services/groups
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-12-11 16:15:10 -0200
committerFelipe Artur <felipefac@gmail.com>2018-12-14 10:38:52 -0200
commit1653f7b1c68b2ea7da8df84ed459b9578e3dff8f (patch)
tree9e55514e5682aa8799469286265b3e51af84b003 /spec/services/groups
parentcc7353523bc1d19054769d7a0a61b0cb7f6ce4e3 (diff)
downloadgitlab-ce-1653f7b1c68b2ea7da8df84ed459b9578e3dff8f.tar.gz
Delete confidential issue todos for guests
Fix leaking information of confidential issues on TODOs when user is downgraded to guest access.
Diffstat (limited to 'spec/services/groups')
-rw-r--r--spec/services/groups/update_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/groups/update_service_spec.rb b/spec/services/groups/update_service_spec.rb
index 84cfa53ea05..d87a7dd234d 100644
--- a/spec/services/groups/update_service_spec.rb
+++ b/spec/services/groups/update_service_spec.rb
@@ -56,7 +56,7 @@ describe Groups::UpdateService do
create(:project, :private, group: internal_group)
expect(TodosDestroyer::GroupPrivateWorker).to receive(:perform_in)
- .with(1.hour, internal_group.id)
+ .with(Todo::WAIT_FOR_DELETE, internal_group.id)
end
it "changes permission level to private" do