Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5828

Show
Ignore:
Timestamp:
01/01/07 03:03:13 (2 years ago)
Author:
minam
Message:

Make sure html_document is reset between integration test requests (closes #6834)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5820 r5828  
    11*SVN* 
     2 
     3* Make sure html_document is reset between integration test requests. [ctm] 
    24 
    35* Set session to an empty hash if :new_session => false and no session cookie or param is present. CGI::Session was raising an unrescued ArgumentError.  [Josh Susser] 
  • trunk/actionpack/lib/action_controller/integration.rb

    r5642 r5828  
    494494      define_method(method) do |*args| 
    495495        reset! unless @integration_session 
     496        # reset the html_document variable, but only for new get/post calls 
     497        @html_document = nil unless %w(cookies assigns).include?(method) 
    496498        returning @integration_session.send(method, *args) do 
    497499          copy_session_variables!