Sha256: 1f6cae7bb462a19852573558a6d263182bb6002bb95bcb6ea212592922ef116d
Contents?: true
Size: 692 Bytes
Versions: 39
Compression:
Stored size: 692 Bytes
Contents
require 'dynflow/testing' module ForemanTasks module TestHelpers 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 module WithInThreadExecutor extend ActiveSupport::Concern included do setup do @old_dynflow_world = ForemanTasks.dynflow.world ForemanTasks.dynflow.world = ForemanTasks::TestHelpers.test_in_thread_world end teardown do ForemanTasks.dynflow.world = @old_dynflow_world end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems