[mocha-developer] Isn't it possible to stub / expect on :id ?

Francois Beausoleil francois.beausoleil at gmail.com
Wed Oct 25 14:39:19 EDT 2006

Hi all !

Running this:
@payout = stub_everything(:id => 141)

Generates this warning:
./test/functional/payouts_controller_test.rb:22: warning: Object#id
will be deprecated; use Object#object_id

What am I missing ?  :id is a fairly frequent method to override in
Rails-based applications.

I'm using Mocha from svn://rubyforge.org/var/svn/mocha/trunk @ r70.

Thanks !
François Beausoleil

More information about the mocha-developer mailing list