0

我发现 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, ...

有没有人有同样的经历?

4

1 回答 1

0

http://blog.simonmathieu.com/post/9640016407/rails-spork-test-unit-mocha

似乎彼此不太顺利,但我会尝试一下。

于 2012-03-21T17:20:20.870 回答