rum: Stubbing and mocking for R.

Description Details See Also

Description

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.

Details

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.

See Also

https://github.com/freerange/mocha


robertzk/rum documentation built on May 27, 2019, 11:37 a.m.