mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix spec typo and minor cleanup
This commit is contained in:
parent
b8be314e8f
commit
62230c7e0b
2 changed files with 5 additions and 6 deletions
|
@ -39,7 +39,6 @@ Capybara.register_driver :selenium_ie do |app|
|
||||||
browser: :remote,
|
browser: :remote,
|
||||||
options: options,
|
options: options,
|
||||||
url: url).tap do |driver|
|
url: url).tap do |driver|
|
||||||
puts driver.browser.capabilities.inspect
|
|
||||||
driver.browser.file_detector = lambda do |args|
|
driver.browser.file_detector = lambda do |args|
|
||||||
str = args.first.to_s
|
str = args.first.to_s
|
||||||
str if File.exist?(str)
|
str if File.exist?(str)
|
||||||
|
@ -50,9 +49,7 @@ Capybara.register_driver :selenium_ie do |app|
|
||||||
app,
|
app,
|
||||||
browser: :ie,
|
browser: :ie,
|
||||||
options: options
|
options: options
|
||||||
).tap do |driver|
|
)
|
||||||
puts driver.browser.capabilities.inspect
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -83,8 +83,10 @@ RSpec.describe Capybara::Server do
|
||||||
server = Capybara::Server.new(app).boot
|
server = Capybara::Server.new(app).boot
|
||||||
|
|
||||||
expect do
|
expect do
|
||||||
Net::HTTP.start(server.host, server.port, max_retries: 0) { |http| http.get('/__idntify__') }
|
Net::HTTP.start(server.host, server.port, max_retries: 0) { |http| http.get('/__identify__') }
|
||||||
end.to raise_error(EOFError)
|
end.to(raise_error do |e|
|
||||||
|
expect(e.is_a?(EOFError) || e.is_a?(Net::ReadTimeout)).to be true
|
||||||
|
end)
|
||||||
|
|
||||||
res = Net::HTTP.start(server.host, server.port, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) do |https|
|
res = Net::HTTP.start(server.host, server.port, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) do |https|
|
||||||
https.get('/')
|
https.get('/')
|
||||||
|
|
Loading…
Reference in a new issue