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

Disable cuprite warnings for CI

Oliver Günther3a602527c15f
diff --git a/spec/support/shared/cuprite_helpers.rb b/spec/support/shared/cuprite_helpers.rb
index fb220d780b4..43baccc6791 100644
--- a/spec/support/shared/cuprite_helpers.rb
+++ b/spec/support/shared/cuprite_helpers.rb
@@ -54,6 +54,9 @@ def wait_for_reload
end
def warn_about_cuprite_helper_misuse(method_name)
+ # Don't bloat the output of the CI
+ return if ENV["CI"]
+
stack = caller(2)
cause = [stack[0], stack.find { |line| line["_spec.rb:"] }].uniq.join(" … ")
warn "#{method_name} used in spec not using cuprite (#{cause})"