Technical
Mocha

Mocking   in the wild.

Mocking attribute


person = mocha()
Person.expects(:new)
Person.expects(:id=).with(2) 
Person.expects(:save).raises(Exception,"Some Exception")