module Syskit::Test::FlexMockExtension

Module containing extensions to flexmock to ease testing syskit objects

Public Instance Methods

should_receive_operation(*args) click to toggle source

Specifies that an operation is expected to be called. The mocked object is the Syskit taskcontext (NOT the orocos task context)

# File lib/syskit/test/flexmock_extension.rb, line 8
def should_receive_operation(*args)
    if !@obj.orocos_task
        @obj.execution_agent.start!
    end
    flexmock_container.flexmock(@obj.orocos_task).should_receive(*args)
end