module Proxy::Dynflow::Testing
Helper for usage in other dependent plugins that need Dynflow related things, such as testing instance of world etc.
Public Class Methods
create_world(&block)
click to toggle source
# File lib/smart_proxy_dynflow/testing.rb, line 13 def create_world(&block) Proxy::Dynflow::Plugin.settings.database = nil Proxy::Dynflow.ensure_initialized Proxy::Dynflow.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