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
Use request_page to handle sinatra redirects

This should make current_url and keeping the referrer work as expected
foca (author)
Sun Dec 28 21:37:37 -0800 2008
commit  422c6aea89310899bceda5d8797d311acafafa84
tree    0f548a9176392bf8b60290e5651de3169328fe0e
parent  6704d487bcba624e62096a45e875bcbf44c60fbb
...
16
17
18
19
 
20
21
22
...
16
17
18
 
19
20
21
22
0
@@ -16,7 +16,7 @@ module Webrat
0
         path, data, headers = *args
0
         params = data.merge(:env => headers || {})
0
         self.__send__("#{verb}_it", path, params)
0
-        get_it(@response.location, params) while @response.redirect?
0
+        request_page(@response.location, :get, {}) while @response.redirect?
0
       end
0
     end
0
   end

Comments