Permalink
Browse files

save and open page works with pathname as asset root

  • Loading branch information...
jnicklas committed Jan 29, 2010
1 parent 0f2e2d3 commit 1e3edf7c5db6406f3b0dc1cdad52df8052b8abae
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capybara/save_and_open_page.rb
@@ -27,7 +27,7 @@ def rewrite_css_and_image_references(response_html) # :nodoc:
list << name if File.directory?(name) and not name.to_s =~ /^\./
list
end
response_html.gsub(/("|')\/(#{directories.join('|')})/, '\1' + Capybara.asset_root + '/\2')
response_html.gsub(/("|')\/(#{directories.join('|')})/, '\1' + Capybara.asset_root.to_s + '/\2')
end
end
end

0 comments on commit 1e3edf7

Please sign in to comment.