Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename Browser#request to Browser#get because that's what it does

  • Loading branch information...
commit 99afef1bb8ceaa677131a66730b40920ea3be293 1 parent ee1419c
@svenfuchs authored
View
6 lib/steam/browser/html_unit.rb
@@ -33,15 +33,15 @@ def close
@client.closeAllWindows
end
- def request(url)
+ def get(url)
call Request.env_for(url)
end
- alias :visit :request
+ alias :visit :get
def call(env)
respond_to do
@request = Rack::Request.new(env)
- client.request(@request.url)
+ client.get(@request.url)
end.to_a
end
View
2  lib/steam/browser/html_unit/client.rb
@@ -49,7 +49,7 @@ def initialize(connection = nil, options = {})
end
end
- def request(*args)
+ def get(*args)
@java.getPage(*args) # TODO use WebRequestSettings
end
View
4 test/playground/drb.rb
@@ -37,14 +37,14 @@
url = 'http://localhost:3000'
def request_without_drb(browser, url)
- browser.request(url)
+ browser.get(url)
browser.response
end
def request_with_drb(browser, url)
DRb.start_service(Steam.config[:drb_uri], browser)
drb = DRbObject.new(nil, Steam.config[:drb_uri])
- drb.request(url)
+ drb.get(url)
drb.response
end
View
2  test/playground/thread_problem.rb
@@ -52,6 +52,6 @@
# browser = Browser::HtmlUnit.new(mock)
# # client.setWebConnection(Rjb::bind(connection, 'com.gargoylesoftware.htmlunit.WebConnection'))
#
-# response = browser.request('http://localhost:3000/').last
+# response = browser.get('http://localhost:3000/').last
# puts browser.page.asXml
Please sign in to comment.
Something went wrong with that request. Please try again.