Posted By: Chris Kampmeier
Date: 2009-06-26 19:09
Summary: FakeWeb 1.2.4, with regex-matched URIs and custom headers
Project: fakeweb
FakeWeb is a helper for faking Net::HTTP requests in Ruby. It works at a global level, without modifying code or writing extensive stubs.
If you're new to FakeWeb, see the README here: http://github.com/chrisk/fakeweb
This new 1.2.4 release has a couple new features and some important deprecations.
The new features: You can now use regexes to match request URIs, which is handy for faking out big swaths of requests at once, ignoring unimportant query parameters, matching both http:// and https://, and so on. FakeWeb also now can add custom headers to your responses without having to specify an entire response fixture, so you can do things like specify a Content-Type or ETag easily.
For the full 1.2.4 changelog, including the deprecation notices, check GitHub: http://github.com/chrisk/fakeweb/blob/fakeweb-1.2.4/CHANGELOG |
|