Looks like this line

Product.stub(!find_all_by_category_id).with(anything()).and_return([product])

might be the culprit. It should be stub!(find... instead of stub(!find....

Regards,
Craig
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to