Revision: 6875
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 22, 2008 18:38 by narkisr
Initial Code
class << to_be_mocked def mocked_method # code end end
Initial URL
Initial Description
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).
Initial Title
Simple mocking of Ruby objects
Initial Tags
ruby
Initial Language
Ruby