Ruby on Rails Saturday, January 29, 2011

Marnen Laibow-Koser wrote in post #978394:
>> - any XML data I fetch from the external site is cached
> The external site isn't already setting its HTTP caching headers
> properly for this?

That's a good suggestion, and I'll certainly look into heeding the HTTP
expiration time stamps. In my case, data isn't updated on a regular
schedule, so the header may be of limited utility. But as I say, I'll
look into it.

> Use Webmock, and perhaps VCR. There is an introductory Webmock
> presentation on my GitHub account.

I looked first at your "Testing Remote Services with WebMock" preso (a
tasty appetizer), and then at https://github.com/bblimke/webmock (the
main course) -- that's *exactly* what I need. I'll be up late tonight
wiring it in. Thanks for the pointer!

- ff

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment