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

Remove bin/bundle from the backtrace output

Christophe Bliard85b73f80c5ed
diff --git a/spec/support/rspec_retry.rb b/spec/support/rspec_retry.rb
index 75249ee87d2..51ade929fa8 100644
--- a/spec/support/rspec_retry.rb
+++ b/spec/support/rspec_retry.rb
@@ -72,6 +72,6 @@ end
def backtrace_up_to_spec_file(exception)
exception.backtrace
.filter { |line| line.start_with?(Rails.root.to_s) }
- .take_while { |line| line.exclude?('/bin/rspec:') }
.grep_v(%r[/spec/support/shared/with_(mail|direct_uploads)])
+ .grep_v(%r[#{Rails.root.join('bin')}])
end