Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-26 18:10:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-26 18:10:26 +0300
commit60a260df4186ab0fe08352d1eb957b34ebdeb7c2 (patch)
tree5c1f44c0cb9c992cd0e1c7d3aa0b241359438314 /spec/serializers
parentee0b7522d90ace2053f1d8dfcdf6b01d50179ed1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/issue_entity_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/serializers/issue_entity_spec.rb b/spec/serializers/issue_entity_spec.rb
index 6b9c703c627..9335ca61b7d 100644
--- a/spec/serializers/issue_entity_spec.rb
+++ b/spec/serializers/issue_entity_spec.rb
@@ -39,6 +39,13 @@ RSpec.describe IssueEntity do
expect(subject).to include(:time_estimate, :total_time_spent, :human_time_estimate, :human_total_time_spent)
end
+ describe 'current_user' do
+ it 'has the exprected permissions' do
+ expect(subject[:current_user]).to include(:can_create_note, :can_update, :can_set_issue_metadata,
+ :can_award_emoji)
+ end
+ end
+
context 'when issue got moved' do
let(:public_project) { create(:project, :public) }
let(:member) { create(:user) }