Best practices for TDD BDD with code that uses external services / api
Posted
by adam
on Stack Overflow
See other posts from Stack Overflow
or by adam
Published on 2010-06-01T07:03:29Z
Indexed on
2010/06/01
7:23 UTC
Read the original article
Hit count: 408
I'm using a twitter gem which basically accesses twitter and lets me grab tweets, timeline etc. Its really good but I have a lot of my code that uses the stuff it returns and I need to test it. The things the gem returns aren't exactly simple strings, there pretty complex objects (scary as well) so im left scratching my head.
So basically I'm looking for an answer, book, blog, open-source project that can show me the rights and wrongs of testing around external services.
answers that are either not language centric or ruby/rails centric would most greatly be appreciated.
© Stack Overflow or respective owner