Fixing issue with capitalized data-method in ruby 1.8.7.
This commit is contained in:
parent
6b9e08b05b
commit
d56188ec35
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue