minor cleanup
This commit is contained in:
parent
8c49ad92d8
commit
3b8828495a
|
@ -275,7 +275,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
|||
browser_name == "chrome"
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def browser_name
|
||||
options[:browser].to_s
|
||||
|
|
|
@ -68,13 +68,13 @@ module Capybara
|
|||
|
||||
remove_method :app_host=
|
||||
def app_host=(url)
|
||||
raise ArgumentError, "Capybara.app_host should be set to a url (http://www.example.com). Tried to set to #{url.inspect}." unless url.nil? || (url =~ URI::DEFAULT_PARSER.make_regexp)
|
||||
raise ArgumentError, "Capybara.app_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." if url && url !~ URI::DEFAULT_PARSER.make_regexp
|
||||
@app_host = url
|
||||
end
|
||||
|
||||
remove_method :default_host=
|
||||
def default_host=(url)
|
||||
raise ArgumentError, "Capybara.default_host should be set to a url (http://www.example.com). Tried to set to #{url.inspect}." unless url.nil? || (url =~ URI::DEFAULT_PARSER.make_regexp)
|
||||
raise ArgumentError, "Capybara.default_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." if url && url !~ URI::DEFAULT_PARSER.make_regexp
|
||||
@default_host = url
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue