OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
tests[Op#53117]: fixup some inconsistencies on the hooks spec
Kabiru Mwenja0b5d40528855
diff --git a/modules/gitlab_integration/spec/lib/open_project/gitlab_integration/notification_handler/issue_hook_spec.rb b/modules/gitlab_integration/spec/lib/open_project/gitlab_integration/notification_handler/issue_hook_spec.rbindex 7e73c9e4d78..cea60477e6f 100644--- a/modules/gitlab_integration/spec/lib/open_project/gitlab_integration/notification_handler/issue_hook_spec.rb+++ b/modules/gitlab_integration/spec/lib/open_project/gitlab_integration/notification_handler/issue_hook_spec.rb@@ -149,7 +149,7 @@ RSpec.describe OpenProject::GitlabIntegration::NotificationHandler::IssueHook doit_behaves_like 'calls the issue upsert service'context 'when the work package is already known to the GitlabIssue' do- let!(:gitlab_issue) { create(:gitlab_issue, gitlab_id: 4, work_packages: [work_package]) }+ let!(:gitlab_issue) { create(:gitlab_issue, gitlab_id: 5, work_packages: [work_package]) }it_behaves_like 'adding a comment'@@ -163,6 +163,7 @@ RSpec.describe OpenProject::GitlabIntegration::NotificationHandler::IssueHook doendcontext 'with a labeled action' do+ let!(:gitlab_issue) { create(:gitlab_issue, gitlab_id: 5, work_packages: [work_package]) }let(:gitlab_action) { 'update' }let(:issue_state) { 'opened' }@@ -197,7 +198,10 @@ RSpec.describe OpenProject::GitlabIntegration::NotificationHandler::IssueHook do]end- it_behaves_like 'not adding a comment'+ # No comment is added when the labels are updated as there is no UI yet for labels supported by the plugin+ let(:comment) { nil }++ it_behaves_like 'adding a comment'it 'calls the issue upsert service with all work_packages' dogitlab_issue = process.reload