Files
2012-02-21 01:15:00 -05:00

1 line
1.6 KiB
JSON

[{"user_id": 1709, "stars": [], "topic_id": 35831, "date_created": 1305742647.9372549, "message": "Preferably, the toolkit should be able to act as a proxy and record the API calls so I can play it back later", "group_id": 447, "id": 1100952}, {"user_id": 1709, "stars": [], "topic_id": 35831, "date_created": 1305742614.625783, "message": "I'm looking for something to simulate/mock a web service endpoint so I can test my app in offline mode. In this case, it's really an iOS app, but I know us Rails folks have tackled this scenario before.", "group_id": 447, "id": 1100944}, {"user_id": 19543, "stars": [], "topic_id": 35831, "date_created": 1305790881.4425261, "message": "I usually setup a very small sinatra app for this kind of thing, it's very fast and enough", "group_id": 447, "id": 1109216}, {"user_id": 29643, "stars": [], "topic_id": 35831, "date_created": 1305825552.61412, "message": "As bourgui said, simple little Sinatra app that your iOS app can hit would work. You can also use something like VCR or one of the few other systems for Rails testing that record real API usage and builds mocks or similar. So, you might be able to then take that, run your Rails app in the \"test\" environment (where these would be available) and use that. We do a bit of this with our iOS app, however, our iOS app is actually calling API's on our own Rails backend that is then mocking out third party API's it hits on behalf of the iOS app (e.g. iOS app calls in and says \"reserve x\" and our app uses third party to generate a piece of x, and we mock that out in test).", "group_id": 447, "id": 1113956}]