On 15 Apr 2008, at 23:05, Zubin Henner wrote:
> Item.any_instance.stubs(:valid?).returns(true)
> item = Item.new
> item.valid?


Any reason why you are not using pure mocks here?  I assume it's not  
Item you are testing, but some other model that is associated with it?

Ashley


-- 
http://www.patchspace.co.uk/
http://aviewfromafar.net/



_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to