@andreorvalho why not simply this? expect(new_photo_to_upload).to_be Photo.new