Unit testing ActiveRecord queries without fixtures. How to stub?
===

I'd like to write a test that would drive out the following method on an ActiveRecord model:

    def self.active_products
        Product.where("active = ?", true)
    end

Now, I originally did this by using fixtures to load a known number of Products, some of which  were active. However, I generally tend not to use fixtures if I don't have to, as I like to be able to run as many of my tests as possible without touching the database.

So, is there a way that I can stub out some method on ActiveRecord::Base so that I can test that this query has the intended behaviour?