I am a fan of using mocks and stubs everywhere I can to keep my specs running quickly. I'm kind of stumped as to how I might do this to test the find_special method in the following:
has_many :foos do
def find_special
if proxy_owner.baz
... find stuff
else
... find other stuff
end
end
end
I wouldn't mind using the :extend => module syntax for this, but I don't think it makes a difference.