Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过 Rspec 测试代码在 mTurk 创建命中,但同时我需要测试必须从 mTurk 发回的结果。为了节省每次测试的复杂性测试,我使用 VCR 将 HTTP 请求记录在磁带中。我该如何实施这个测试?
好吧,我为此做了一些修改,我使用调试器来保存我的 rspec 测试,直到结果从 mTurk 返回,然后它被存储在 VCR 中。所以我必须做一次这种黑客攻击,然后在 VCR 为我工作之后