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
resolve Performance/CollectionLiteralInLoop
Kabiru Mwenja292a116dc75d
diff --git a/spec/lib/api/v3/activities/activity_eager_loading_wrapper_spec.rb b/spec/lib/api/v3/activities/activity_eager_loading_wrapper_spec.rbindex a430ab4dbae..c8d21fde89e 100644--- a/spec/lib/api/v3/activities/activity_eager_loading_wrapper_spec.rb+++ b/spec/lib/api/v3/activities/activity_eager_loading_wrapper_spec.rb@@ -43,9 +43,10 @@ RSpec.describe API::V3::Activities::ActivityEagerLoadingWrapper, with_settings:wrapped_journals = described_class.wrap(journals)expect(wrapped_journals.size).to eq(journals.size)+ expected_associations_cached = %i[journable data]wrapped_journals.each do |loaded_journal|expect(loaded_journal.__getobj__.instance_variables).to include(:@predecessor, :@unread_notifications)- %i[journable data].each do |association|+ expected_associations_cached.each do |association|expect(loaded_journal.association_cached?(association)).to be trueendend