Skip to content

Commit

Permalink
Adjusting string concatenation on save_and_open_page.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Carvalho committed Nov 26, 2010
1 parent b022ca9 commit 07b74d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/util/save_and_open_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def rewrite_css_and_image_references(response_html) # :nodoc:
(root+name).directory? and not name.to_s =~ /^\./
}
if not directories.empty?
response_html.gsub!(/("|')\/(#{directories.join('|')})/, '\1' + root + '/\2')
response_html.gsub!(/("|')\/(#{directories.join('|')})/, '\1' + root.to_s + '/\2')
end
return response_html
end
Expand Down

0 comments on commit 07b74d7

Please sign in to comment.