We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b80bc9 commit 78ca4b1Copy full SHA for 78ca4b1
spec/support/factory_bot_helper.rb
@@ -19,8 +19,8 @@ def seq_padded_for_sorting(n)
19
20
require 'factory_bot'
21
22
-# In case we are running as an engine, the factories are located in the dummy app
23
-FactoryBot.definition_file_paths << 'spec/manageiq/spec/factories'
+# In case we are running as an engine, the factories are located in the Rails application
+FactoryBot.definition_file_paths << Rails.root.join('spec/factories')
24
25
# Also, add factories from provider gems until miq codebase does not use any provider specific factories anymore
26
Rails::Engine.subclasses.select { |e| e.name.starts_with?("ManageIQ::Providers") }.each do |engine|
0 commit comments