Topic: Testing ActiveRecord Custom Finders using BDD

Hello all,

I am trying out BDD in a new project had a question on how to spec out custom finders. For example:

http://pastie.caboo.se/107825

Basically, it comes down to how do I spec out an overriden find method in an AR model?

I know of 2 compromises to this problem:

1. Make a Review#find_featured_review and then use the expectation that Review.should_receive(:find).with(...)
2. Use fixtures and not use expectations.

Any insight in to this  matter will be greatly appreciated.

Thank you,
Rohith