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

enable omitting FactoryBot.

ulfertsbd819530c5d9
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 304ca67e7c2..a774e365f9b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -110,6 +110,10 @@ RSpec.configure do |config|
# Use colored output
config.color = true
+ # Have the FactoryBot methods like #create and #build_stubbed without
+ # having to call it on FactoryBot.
+ config.include FactoryBot::Syntax::Methods
+
# Seed global randomization in this process using the `--seed` CLI option.
# Setting this allows you to use `--seed` to deterministically reproduce
# test failures related to randomization by passing the same `--seed` value