Sha256: b55b0677537c8743fddc425994bb3150272d039da7d9a797299c7ca7638075c5
Contents?: true
Size: 870 Bytes
Versions: 11
Compression:
Stored size: 870 Bytes
Contents
module Dynflow module Testing class DummyWorld extend Mimic mimic! World attr_reader :clock, :executor, :middleware attr_accessor :action def initialize @logger_adapter = Testing.logger_adapter @clock = ManagedClock.new @executor = DummyExecutor.new(self) @middleware = Middleware::World.new end def action_logger @logger_adapter.action_logger end def logger @logger_adapter.dynflow_logger end def silence_logger! action_logger.level = 4 end def subscribed_actions(klass) [] end def event(execution_plan_id, step_id, event, future = Future.new) executor.event execution_plan_id, step_id, event, future end def persistence nil end end end end
Version data entries
11 entries across 11 versions & 1 rubygems