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 tests

Christophe Bliard18219ce71ff0
diff --git a/spec/support/table_helpers/table_data.rb b/spec/support/table_helpers/table_data.rb
index 409c50f4ff7..fbdbccbca4b 100644
--- a/spec/support/table_helpers/table_data.rb
+++ b/spec/support/table_helpers/table_data.rb
@@ -160,9 +160,9 @@ module TableHelpers
if identical_identifiers.any?
puts <<~MESSAGE
[let_work_packages] Warning: existing work packages with identical identifiers found: #{identical_identifiers.map(&:inspect).join(', ')}
- [let_work_packages] This can cause failures when checking work package with `expect_work_packages(WorkPackage.all)`."
- [let_work_packages] Current example is #{RSpec.current_example.description.inspect} at #{RSpec.current_example.location}
+ [let_work_packages] This can cause failures when checking work package with `expect_work_packages(WorkPackage.all)`"
MESSAGE
+ puts "[let_work_packages] Current example is #{RSpec.current_example.location}" if RSpec.current_example
end
end