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

Latest News
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58

 

Forums | Admin

Discussion Forums: fakeweb-1.2.4--with-regex-matched-uris-and-custom-headers

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post