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
Fix spec that never got run in before block
Oliver Günther19bd25391dd1
diff --git a/spec/controllers/work_packages/moves_controller_spec.rb b/spec/controllers/work_packages/moves_controller_spec.rbindex 52d2fa0b967..228cd7f247b 100644--- a/spec/controllers/work_packages/moves_controller_spec.rb+++ b/spec/controllers/work_packages/moves_controller_spec.rb@@ -467,18 +467,20 @@ describe WorkPackages::MovesController, with_settings: { journal_aggregation_timendcontext 'on new' do+ render_views+before doget :new,params: {ids: [work_package.id, child_wp.id],copy: '',- new_project_id: to_project.id+ new_project_id: target_project.id}+ end- it 'reports the one child work package' do- expect(response.body).to have_selector "a.issue", count: 1- expect(response.body).to have_selector "contextual-info", text: '(+ One child work package)'- end+ it 'reports the one child work package' do+ expect(response.body).to have_selector "a.work_package", count: 2+ expect(response.body).to have_selector ".contextual-info", text: '(+ One descendant work package)'endend@@ -511,7 +513,7 @@ describe WorkPackages::MovesController, with_settings: { journal_aggregation_timendend- context 'child work package from one project to other' do+ context 'when copying child work package from one project to other' dolet(:to_project) docreate(:project,types: [type])