small medium large xlarge

Joe_avatar_01_pragsmall
22 Oct 2010, 02:14
Joe Fiorini (3 posts)

On page 42 (of the epub version) you show an example of user_spec with the Twitter SearchAPI mocked out. When you talk about making tests more reliable, I think it would be a good idea to create a wrapper method that handles the Twitter API calls and just stub that method. It would make your test much cleaner and also protect it against future changes to the API gem. Thoughts?

You must be logged in to comment