Module: SmartProxyDynflowCore::Dynflow::Testing

Defined in:
lib/smart_proxy_dynflow_core/testing.rb

Overview

Helper for usage in other dependent plugins that need Dynflow related things, such as testing instance of world etc.

Class Method Summary collapse

Class Method Details

.create_world(&block) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/smart_proxy_dynflow_core/testing.rb', line 13

def create_world(&block)
  Core.ensure_initialized
  Core.instance.create_world do |config|
    config.exit_on_terminate = false
    config.auto_terminate    = false
    config.logger_adapter    = ::Dynflow::LoggerAdapters::Simple.new $stderr, DYNFLOW_TESTING_LOG_LEVEL
    block.call(config) if block
  end
end