Class: Ruote::TestContext

Inherits:
Context
  • Object
show all
Defined in:
lib/ruote/context.rb

Overview

A minimal context, useful for testing expressions in isolation.

Constant Summary

Constants inherited from Context

Context::SERVICE_PREFIX

Instance Attribute Summary

Attributes inherited from Context

#dashboard, #storage

Instance Method Summary collapse

Methods inherited from Context

#[], #[]=, #add_service, #context, #engine_id, #has_service?, #keys, #notify, #pre_notify, #services, #shutdown, #worker

Constructor Details

#initializeTestContext

Returns a new instance of TestContext.



280
281
282
283
284
# File 'lib/ruote/context.rb', line 280

def initialize

  @services = {}
  initialize_services
end