Class: Sequent::Test::WorkflowHelpers::FakeCommandService
- Inherits:
-
Object
- Object
- Sequent::Test::WorkflowHelpers::FakeCommandService
- Defined in:
- lib/sequent/test/event_handler_helpers.rb
Instance Attribute Summary collapse
-
#recorded_commands ⇒ Object
readonly
Returns the value of attribute recorded_commands.
Instance Method Summary collapse
- #execute_commands(*commands) ⇒ Object
-
#initialize ⇒ FakeCommandService
constructor
A new instance of FakeCommandService.
Constructor Details
#initialize ⇒ FakeCommandService
Returns a new instance of FakeCommandService.
49 50 51 |
# File 'lib/sequent/test/event_handler_helpers.rb', line 49 def initialize @recorded_commands = [] end |
Instance Attribute Details
#recorded_commands ⇒ Object (readonly)
Returns the value of attribute recorded_commands.
47 48 49 |
# File 'lib/sequent/test/event_handler_helpers.rb', line 47 def recorded_commands @recorded_commands end |
Instance Method Details
#execute_commands(*commands) ⇒ Object
53 54 55 |
# File 'lib/sequent/test/event_handler_helpers.rb', line 53 def execute_commands(*commands) @recorded_commands += commands end |