module ForemanTasks::TestHelpers

Public Class Methods

test_in_thread_world() click to toggle source
# File lib/foreman_tasks/test_helpers.rb, line 4
def self.test_in_thread_world
  return @test_in_thread_world if @test_in_thread_world
  world_config = ForemanTasks.dynflow.config.world_config
  @test_in_thread_world = ::Dynflow::Testing::InThreadWorld.new(world_config)
end