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
Save spec boot time by lazy-loading fuubar
Christophe Bliardc2aafe227bc4
diff --git a/Gemfile b/Gemfileindex 688f63221a0..83aa343ee14 100644--- a/Gemfile+++ b/Gemfile@@ -272,7 +272,7 @@ group :test dogem "selenium-devtools"gem "selenium-webdriver", "~> 4.20"- gem "fuubar", "~> 2.5.0"+ gem "fuubar", "~> 2.5.0", require: falsegem "timecop", "~> 0.9.0"# Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.diff --git a/spec/rspec_helper.rb b/spec/rspec_helper.rbindex 81bfc190813..4e76b12c9ab 100644--- a/spec/rspec_helper.rb+++ b/spec/rspec_helper.rb@@ -88,12 +88,10 @@ RSpec.configure do |config|# unless a formatter has already been configured# (e.g. via a command-line flag).config.default_formatter = "doc"- else- # Otherwise, use the Fuubar formatter if we're not on the CI- unless ENV["TEST_ENV_NUMBER"] || ENV["CI"]- require "fuubar"- config.default_formatter = Fuubar- end+ # Otherwise, use the Fuubar formatter if none is specified and we're not on the CI+ elsif config.formatters.none? && !ENV["TEST_ENV_NUMBER"] && !ENV["CI"]+ require "fuubar"+ config.default_formatter = Fuubarend# Print the 10 slowest examples and example groups at the