我发现spork test unit因mocha mock/stub而失败。但是,如果我在不使用spork的情况下运行相同的测试,则运行良好,并且所有测试都通过。
它会给出如下所示的错误。
1) Failure:
....
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #<AnyInstance:User(id: integer, ...有没有人有过同样的经历?
发布于 2012-03-22 01:20:21
http://blog.simonmathieu.com/post/9640016407/rails-spork-test-unit-mocha
看起来彼此不是很好,但我会试一试这个。
https://stackoverflow.com/questions/9738805
复制相似问题