when_invoked

when_invoked(&block)
Instance Public methods

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.

doc_ruby_on_rails
2015-04-07 22:22:21
Comments
Leave a Comment

Please login to continue.