我发现 spork-test 单元因 mocha mock/stub 而失败。但是,如果我在没有 spork 的情况下运行相同的测试,它工作正常并且所有测试都通过。
它给出如下错误。
1) Failure:
....
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #<AnyInstance:User(id: integer, ...
有没有人有同样的经历?