Skip to content

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

Fix fetcher_integration_spec

Mir Bhatia21993dd10077
diff --git a/spec/models/activities/fetcher_integration_spec.rb b/spec/models/activities/fetcher_integration_spec.rb
index 99c33780d37..f347cefcf9e 100644
--- a/spec/models/activities/fetcher_integration_spec.rb
+++ b/spec/models/activities/fetcher_integration_spec.rb
@@ -62,7 +62,7 @@ describe Activities::Fetcher, 'integration' do
it 'finds events of all types except budgets' do
expect(subject.map(&:journable_id))
- .to match_array(activities.map(&:id).excluding(budget.id))
+ .to match_array(activities.excluding(budget).map(&:id))
end
context 'if lacking permissions' do
@@ -117,7 +117,7 @@ describe Activities::Fetcher, 'integration' do
it 'finds events of all types excluding budgets' do
expect(subject.map(&:journable_id))
- .to match_array(activities.map(&:id).excluding(budget.id))
+ .to match_array(activities.excluding(budget).map(&:id))
end
context 'if lacking permissions' do
@@ -258,7 +258,7 @@ describe Activities::Fetcher, 'integration' do
it 'finds events of all types except budgets' do
expect(subject.map(&:journable_id))
- .to match_array(activities.map(&:id).excluding(budget.id))
+ .to match_array(activities.excluding(budget).map(&:id))
end
context 'for a different user' do