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

Changeset 6181

Show
Ignore:
Timestamp:
02/21/07 00:40:58 (1 year ago)
Author:
david
Message:

Make assert_select access content_type through accessor instead of header

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/assertions/selector_assertions.rb

    r6057 r6181  
    552552        # page, or from all the RJS statements, depending on the type of response. 
    553553        def response_from_page_or_rjs() 
    554           content_type = @response.headers["Content-Type"] 
     554          content_type = @response.content_type 
    555555          if content_type && content_type =~ /text\/javascript/ 
    556556            body = @response.body.dup