Revision 5cdedae3
Added by Marek Hulán over 6 years ago
test/test_plugin_helper.rb | ||
---|---|---|
# This calls the main test_helper in Foreman-core
|
||
require 'test_helper'
|
||
|
||
# Add plugin to FactoryGirl's paths
|
||
FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
|
||
FactoryGirl.reload
|
||
# Add plugin to FactoryBot's paths
|
||
FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
|
||
FactoryBot.reload
|
Also available in: Unified diff
Fixes #21531 - start using factory bot