dummy v1.2.1 Dummy.Method View Source
Handles replacing methods
Link to this section Summary
Functions
Replaces a method with a mock, according to how the mock was defined: "function", "function/N" or {"function", value} or {"function", fn}
Replaces a function from a string like "function" or "function/
Replaces a function with a value or a function.
Link to this section Functions
Replaces a method with a mock, according to how the mock was defined: "function", "function/N" or {"function", value} or {"function", fn}
Replaces a function from a string like "function" or "function/
Replaces a function with a value or a function.
{"function", value} replaces the function with an anonymous, single-argument function that returns 'value'
{"function", fn ... -> ... end} replaces the original function with the given one.