method

when_invoked

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: Command
when_invoked(&block) public

Call the given block when invoked.

Normal command invocations just executes the execute method of the command. Specifying an invocation block allows the test methods to override the normal action of a command to determine that it has been invoked correctly.

Show source
Register or log in to add new notes.