Fixing issue with capitalized data-method in ruby 1.8.7.

This commit is contained in:
Marco Antonio 2011-11-02 14:24:54 -02:00
parent 6b9e08b05b
commit d56188ec35
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ class Capybara::RackTest::Browser
def process(method, path, attributes = {})
new_uri = URI.parse(path)
current_uri = URI.parse(current_url)
method.downcase! unless method.is_a? Symbol
if new_uri.host
@current_host = new_uri.scheme + '://' + new_uri.host
@ -59,7 +60,7 @@ class Capybara::RackTest::Browser
end
reset_cache!
send(method.downcase, path, attributes, env)
send(method, path, attributes, env)
end
def current_url