Method: Webrat::SaveAndOpenPage#rewrite_css_and_image_references
- Defined in:
- lib/webrat/core/save_and_open_page.rb
#rewrite_css_and_image_references(response_html) ⇒ Object
:nodoc:
27 28 29 30 |
# File 'lib/webrat/core/save_and_open_page.rb', line 27 def rewrite_css_and_image_references(response_html) # :nodoc: return response_html unless doc_root response_html.gsub(/("|')\/(stylesheets|images)/, '\1' + doc_root + '/\2') end |