search for: payouts_controller_test

Displaying 1 result from an estimated 1 matches for "payouts_controller_test".

2006 Oct 25
2
Isn''t it possible to stub / expect on :id ?
Hi all ! Running this: @payout = stub_everything(:id => 141) Payout.stubs(:find).with(@payout.id).returns(@payout) 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 http://blog.teksol.info/...