summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2019-06-11 23:12:21 +0000
committerThong Kuah <tkuah@gitlab.com>2019-06-11 23:12:21 +0000
commita17a15562d7f1ada0ddce1ad3a0369a69a46bcab (patch)
treed3fb0512c98bb70a158034e862a3e8e66feec017 /spec
parent2a29f910592e82d8f8d108e15497dd2fbbbb07ca (diff)
downloadgitlab-ce-a17a15562d7f1ada0ddce1ad3a0369a69a46bcab.tar.gz
API issues - minor cleanup of permission check
Adds `set_issue_updated_at` similar to `set_issue_created_at` permission and cleans up the related permission check in issues API.
Diffstat (limited to 'spec')
-rw-r--r--spec/policies/project_policy_spec.rb2
-rw-r--r--spec/support/shared_contexts/policies/project_policy_shared_context.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/policies/project_policy_spec.rb b/spec/policies/project_policy_spec.rb
index 8075fcade5f..ed0e82ef179 100644
--- a/spec/policies/project_policy_spec.rb
+++ b/spec/policies/project_policy_spec.rb
@@ -66,7 +66,7 @@ describe ProjectPolicy do
%i[
change_namespace change_visibility_level rename_project remove_project
archive_project remove_fork_project destroy_merge_request destroy_issue
- set_issue_iid set_issue_created_at set_note_created_at
+ set_issue_iid set_issue_created_at set_issue_updated_at set_note_created_at
]
end
diff --git a/spec/support/shared_contexts/policies/project_policy_shared_context.rb b/spec/support/shared_contexts/policies/project_policy_shared_context.rb
index 54d9f5b15f2..1aa40dcde3d 100644
--- a/spec/support/shared_contexts/policies/project_policy_shared_context.rb
+++ b/spec/support/shared_contexts/policies/project_policy_shared_context.rb
@@ -64,7 +64,7 @@ RSpec.shared_context 'ProjectPolicy context' do
%i[
change_namespace change_visibility_level rename_project remove_project
archive_project remove_fork_project destroy_merge_request destroy_issue
- set_issue_iid set_issue_created_at set_note_created_at
+ set_issue_iid set_issue_created_at set_issue_updated_at set_note_created_at
]
end