ruby-mocha
Rails Test & Mocha: How to stub specific model - conditional any_instance?
I want to stub just a specific model, but not only a specific object and not every instance E.g. Given class \'Person\' with attributes \'name\' (string) and \'cool\' (boolean). We have two models:[详细]
2022-12-08 21:32 分类:问答