Minitest::Mock

class Minitest::Mock

Parent:
Object

A simple and clean mock object framework.

All mock objects are an instance of Mock

Public Instance Methods

expect(name, retval, args = [], &blk) Show source

Expect that method name is called, optionally with args or a blk, and returns retval.

登录查看完整内容