[rspec-users] Easy AR association stubbing

Matthew Heidemann matthew.heidemann at gmail.com
Fri Oct 26 11:28:44 EDT 2007


try:   it "should find the item requested" do
    @current_company.items.should_receive(:find).with("1").and_return(@item)
    do_get
  end


-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071026/8a66c728/attachment.html 


More information about the rspec-users mailing list