Almost every spec file I come accross I end up writing stuff like:
before :each do @cimg = Factory.build :cimg_valid @cimg.stub(:validate_img).and_retu
You might also consider using FactoryGirl#build_stubbed.