/ Published in: Ruby

This is as simple as it gets, basiclly this templates shows you how to mock an object methods to any other piece of code that you like (open objects at its simplest glory).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class << to_be_mocked def mocked_method # code end end
Comments
