The result of calling
stub is that, when
is invoked and when it internally makes a call to
how is going to be called instead.
Function to be called that will in turn call
Name of the function you want to stub out (a
Replacement function (also a
Specifies the depth to which the function should be stubbed
This is much more limited in scope in comparison to
with_mock which effectively replaces
what everywhere. In other words, when using
and regardless of the number of intermediate calls,
always called instead of
what. However, using this API,
the replacement takes place only for a single function
and only for calls originating in that function.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.