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

Rubocop autofix for `match_array` -> `contain_exactly`

Klaus Zanderseb49185b5097
diff --git a/spec/models/work_package/work_package_acts_as_journalized_spec.rb b/spec/models/work_package/work_package_acts_as_journalized_spec.rb
index 0234a2f44c4..97e76640bfd 100644
--- a/spec/models/work_package/work_package_acts_as_journalized_spec.rb
+++ b/spec/models/work_package/work_package_acts_as_journalized_spec.rb
@@ -60,22 +60,22 @@ RSpec.describe WorkPackage do
it 'notes the changes to subject' do
expect(work_package.last_journal.details[:subject])
- .to match_array [nil, work_package.subject]
+ .to contain_exactly(nil, work_package.subject)
end
it 'notes the changes to project' do
expect(work_package.last_journal.details[:project_id])
- .to match_array [nil, work_package.project_id]
+ .to contain_exactly(nil, work_package.project_id)
end
it 'notes the description' do
expect(work_package.last_journal.details[:description])
- .to match_array [nil, work_package.description]
+ .to contain_exactly(nil, work_package.description)
end
it 'notes the scheduling mode' do
expect(work_package.last_journal.details[:schedule_manually])
- .to match_array [nil, false]
+ .to contain_exactly(nil, false)
end
it 'has the timestamp of the work package update time for created_at' do