Class: Sequent::Test::WorkflowHelpers::FakeCommandService

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/test/event_handler_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeCommandService

Returns a new instance of FakeCommandService.



48
49
50
# File 'lib/sequent/test/event_handler_helpers.rb', line 48

def initialize
  @recorded_commands = []
end

Instance Attribute Details

#recorded_commandsObject (readonly)

Returns the value of attribute recorded_commands.



46
47
48
# File 'lib/sequent/test/event_handler_helpers.rb', line 46

def recorded_commands
  @recorded_commands
end

Instance Method Details

#execute_commands(*commands) ⇒ Object



52
53
54
# File 'lib/sequent/test/event_handler_helpers.rb', line 52

def execute_commands(*commands)
  @recorded_commands += commands
end