public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://gitrdoc.com/brynary/webrat/tree/master/
Clone URL: git://github.com/brynary/webrat.git
bugfix: when h was nil (which it was for all my tests), everyone would fail with 
nil.[]= errors. Making sure we at least have a blank hash fixes this.
Kieran Pilkington (author)
Mon Dec 29 14:44:54 -0800 2008
joshknowles (committer)
Mon Dec 29 16:27:30 -0800 2008
commit  0938c6dafc68d8dca4c1e221680f62128079499e
tree    aeaee1a68b2c01d33cbc64f158d94149bbff2d3f
parent  2562942b6db665ee171bb15b907fdb4ab6ab2bf7
...
91
92
93
 
94
95
96
...
91
92
93
94
95
96
97
0
@@ -91,6 +91,7 @@ module ActionController #:nodoc:
0
       def follow_redirect_with_headers(h = {})
0
         raise "Not a redirect! #{@status} #{@status_message}" unless redirect?
0
 
0
+        h = Hash.new if h.nil?
0
         h['HTTP_REFERER'] = request.url
0
 
0
         location = headers["location"]

Comments