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 broken specs
Mir Bhatia7721596d1294
diff --git a/spec/models/activities/fetcher_integration_spec.rb b/spec/models/activities/fetcher_integration_spec.rbindex 8796dcee564..99c33780d37 100644--- a/spec/models/activities/fetcher_integration_spec.rb+++ b/spec/models/activities/fetcher_integration_spec.rb@@ -60,9 +60,9 @@ describe Activities::Fetcher, 'integration' docontext 'for global activities' dolet!(:activities) { [project, work_package, message, news, time_entry, changeset, wiki_page.content, budget] }- it 'finds events of all type' do+ it 'finds events of all types except budgets' doexpect(subject.map(&:journable_id))- .to match_array(activities.map(&:id))+ .to match_array(activities.map(&:id).excluding(budget.id))endcontext 'if lacking permissions' do@@ -99,7 +99,7 @@ describe Activities::Fetcher, 'integration' doendend- context 'if scope includes budgets' do+ context 'if scope is set to only budgets' dobefore dooptions[:scope] = %w(budgets)end@@ -115,9 +115,9 @@ describe Activities::Fetcher, 'integration' dolet(:options) { { project: } }let!(:activities) { [project, work_package, message, news, time_entry, changeset, wiki_page.content, budget] }- it 'finds events of all type' do+ it 'finds events of all types excluding budgets' doexpect(subject.map(&:journable_id))- .to match_array(activities.map(&:id))+ .to match_array(activities.map(&:id).excluding(budget.id))endcontext 'if lacking permissions' do@@ -154,7 +154,7 @@ describe Activities::Fetcher, 'integration' doendend- context 'if scope includes budgets' do+ context 'if scope is set to only budgets' dobefore dooptions[:scope] = %w(budgets)end@@ -256,9 +256,9 @@ describe Activities::Fetcher, 'integration' do[project, work_package, message, news, time_entry, changeset, wiki_page.content, budget]end- it 'finds events of all type' do+ it 'finds events of all types except budgets' doexpect(subject.map(&:journable_id))- .to match_array(activities.map(&:id))+ .to match_array(activities.map(&:id).excluding(budget.id))endcontext 'for a different user' do@@ -305,7 +305,7 @@ describe Activities::Fetcher, 'integration' doendend- context 'if scope includes budgets' do+ context 'if scope is set to only budgets' dobefore dooptions[:scope] = %w(budgets)end