Sha256: b1ade2ef5706c015394f27a7f7614d043cc3e9896a058b255be25e7f1e582db5
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
require 'dynflow/testing' module ForemanTasks module TestHelpers def self.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman-tasks-0.8.4 | lib/foreman_tasks/test_helpers.rb |