Project

General

Profile

« Previous | Next » 

Revision 5cdedae3

Added by Marek Hulán over 6 years ago

Fixes #21531 - start using factory bot

View differences:

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