Sha256: e9fc7ab765f6fa100af2db368f25f3692e0758122ccc3df9a196a5f524b2a2a7

Contents?: true

Size: 415 Bytes

Versions: 30

Compression:

Stored size: 415 Bytes

Contents

# requires the main test_helper from Foreman-core
require 'test_helper'
require_relative './test_helper_discovery'

# Add plugin to FactoryBot's paths
FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')

# Add dependencies
if defined? ForemanPuppet
  FactoryBot.definition_file_paths << File.join("#{ForemanPuppet::Engine.root}/test", 'factories')
end

# And reload
FactoryBot.reload

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
foreman_discovery-25.1.0 test/test_plugin_helper.rb
foreman_discovery-25.0.1 test/test_plugin_helper.rb
foreman_discovery-25.0.0 test/test_plugin_helper.rb
foreman_discovery-24.0.2 test/test_plugin_helper.rb
foreman_discovery-23.0.2 test/test_plugin_helper.rb
foreman_discovery-24.0.1 test/test_plugin_helper.rb
foreman_discovery-24.0.0 test/test_plugin_helper.rb
foreman_discovery-23.0.1 test/test_plugin_helper.rb
foreman_discovery-23.0.0 test/test_plugin_helper.rb
foreman_discovery-22.0.4 test/test_plugin_helper.rb
foreman_discovery-21.0.5 test/test_plugin_helper.rb
foreman_discovery-22.0.2 test/test_plugin_helper.rb
foreman_discovery-21.0.4 test/test_plugin_helper.rb
foreman_discovery-21.0.3 test/test_plugin_helper.rb
foreman_discovery-21.0.2 test/test_plugin_helper.rb
foreman_discovery-19.0.5 test/test_plugin_helper.rb
foreman_discovery-19.0.4 test/test_plugin_helper.rb
foreman_discovery-21.0.1 test/test_plugin_helper.rb
foreman_discovery-19.0.3 test/test_plugin_helper.rb
foreman_discovery-21.0.0 test/test_plugin_helper.rb