Module: Proxy::Dynflow::Testing
- Defined in:
- lib/smart_proxy_dynflow/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
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/smart_proxy_dynflow/testing.rb', line 14 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 config.execution_plan_cleaner = nil yield(config) if block end end |