I am creating hits at mTurk through Rspec test code but at the same time i need to test the results which must be send back from mTurk. In order to save complexity testing for every test i'm using VCR to record the HTTP Requests in a cassette. How can i implement this test??
Asked
Active
Viewed 305 times
12
-
I think your title is a bit misleading for what you are trying to achieve. You are probably aware that VCR will give you the opposite of real time results, it stores the response so it gives you a canned response that it made the request for once. Are you asking just how you use VCR to test mTurk, or how to write a test for mTurk? – bobbywilson0 Jul 08 '11 at 21:45
-
3@bobby, well i did some hack for that :), i used debugger to hold my rspec test until results comes back from mTurk and then it get stored in VCR. so i have to do this kinda hack once and then after that VCR works for me – Manish Das Jul 09 '11 at 17:45
1 Answers
4
well i did some hack for that, i used debugger to hold my rspec test until results comes back from mTurk and then it get stored in VCR. so i have to do this kinda hack once and then after that VCR works for me

Manish Das
- 3,785
- 2
- 21
- 34