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
attempt to fix flickering spec
ulferts8a5b5eb69f80
diff --git a/spec/models/queries/work_packages/filter/assigned_to_filter_spec.rb b/spec/models/queries/work_packages/filter/assigned_to_filter_spec.rbindex e056da3d62a..bf4320a36da 100644--- a/spec/models/queries/work_packages/filter/assigned_to_filter_spec.rb+++ b/spec/models/queries/work_packages/filter/assigned_to_filter_spec.rb@@ -99,8 +99,6 @@ describe Queries::WorkPackages::Filter::AssignedToFilter, type: :model dolet(:values) { [assignee.id, user.id, 'me', assignee2.id] }before do- # Order is important here for ids,- # otherwise the value_objects will return <user> due to its idassigneeassignee2user@@ -114,7 +112,9 @@ describe Queries::WorkPackages::Filter::AssignedToFilter, type: :model doit 'returns the mapped value' doobjects = instance.value_objects- expect(objects.map(&:id)).to eql ['me', assignee.id, assignee2.id]+ # As no order is defined in the filter, we use the same method of fetching the values+ # from the DB as the object under text expecting it to return the values in the same order+ expect(objects.map(&:id)).to eql ['me'] + Principal.where(id: [assignee.id, assignee2.id]).pluck(:id)endend