Mocking 3rd party API in Rails

Hello everyone, I must start a project where a third party application have to be mocked in order to me to test it on my Rails 3.0.3 app. I’ve found a project on github https://github.com/hayesdavis/mockingbird that does it for the Twitter API but I want something more generic, do you know any project?

Please help,

Rodrigo Alves Vieira.

Rodrigo Alves Vieira wrote in post #975547:

Hello everyone, I must start a project where a third party application
have
to be mocked in order to me to test it on my Rails 3.0.3 app. I've found
a
project on github https://github.com/hayesdavis/mockingbird that does it
for
the Twitter API but I want something more generic, do you know any
project?

Try: https://github.com/chrisk/fakeweb

You might also want to check out vcr - a standard wrapper around a bunch of different stubbing libraries including fakeweb.

https://github.com/myronmarston/vcr#readme

Best Wishes,

Peter

Thank you guys! I’ll deeply study them!

Robert Walker wrote in post #975549:

Rodrigo Alves Vieira wrote in post #975547:

Hello everyone, I must start a project where a third party application
have
to be mocked in order to me to test it on my Rails 3.0.3 app. I've found
a
project on github https://github.com/hayesdavis/mockingbird that does it
for
the Twitter API but I want something more generic, do you know any
project?

Try: https://github.com/chrisk/fakeweb

...or WebMock, which is similar but not GPL. I have a presentation
about it at http://marnen.github.com/webmock-presentation/webmock.html .

Best,