Module: Dynflow::Testing
- Extended by:
- Algebrick::TypeCheck
- Includes:
- Assertions, Factories
- Defined in:
- lib/dynflow/testing.rb,
lib/dynflow/testing/mimic.rb,
lib/dynflow/testing/factories.rb,
lib/dynflow/testing/assertions.rb,
lib/dynflow/testing/dummy_step.rb,
lib/dynflow/testing/dummy_world.rb,
lib/dynflow/testing/managed_clock.rb,
lib/dynflow/testing/dummy_executor.rb,
lib/dynflow/testing/dummy_execution_plan.rb,
lib/dynflow/testing/dummy_planned_action.rb
Defined Under Namespace
Modules: Assertions, Factories, Mimic Classes: DummyExecutionPlan, DummyExecutor, DummyPlannedAction, DummyStep, DummyWorld, ManagedClock
Class Method Summary collapse
Methods included from Factories
#create_action, #create_action_presentation, #create_and_plan_action, #finalize_action, #plan_action, #progress_action_time, #run_action
Methods included from Assertions
#assert_action_planed, #assert_action_planed_with, #assert_finalize_phase, #assert_run_phase, #refute_action_planed, #refute_finalize_phase, #refute_run_phase
Class Method Details
.get_id ⇒ Object
14 15 16 17 |
# File 'lib/dynflow/testing.rb', line 14 def self.get_id @last_id ||= 0 @last_id += 1 end |
.logger_adapter ⇒ Object
5 6 7 |
# File 'lib/dynflow/testing.rb', line 5 def self.logger_adapter @logger_adapter || LoggerAdapters::Simple.new($stdout, 1) end |
.logger_adapter=(adapter) ⇒ Object
9 10 11 12 |
# File 'lib/dynflow/testing.rb', line 9 def self.logger_adapter=(adapter) Type! adapter, LoggerAdapters::Abstract @logger_adapter = adapter end |