The rum packages aims to provide extra testing capabilities.
Specifically, functions like expect_receives
and
expect_called
are introduced that ensure a given
function is called, possibly with specific parameters.
This is very useful if you wish to, for example, ensure that a certain function that makes a network request was called, but you do not want to perform messy stubbing that would achieve the same effect.
https://github.com/freerange/mocha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.