Skip to content

Commit 8cd4954

Browse files
committed
[rb] fix failing specs
1 parent 285dace commit 8cd4954

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rb/lib/selenium/webdriver/common/selenium_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run(command)
7676
begin
7777
stdout, stderr, status = Open3.capture3(command)
7878
rescue StandardError => e
79-
raise Error::WebDriverError, "Unsuccessful command executed: #{command}", e
79+
raise Error::WebDriverError, "Unsuccessful command executed: #{command}", e.message
8080
end
8181

8282
if status.exitstatus.positive?

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ module WebDriver
2828
reset_driver! do |driver|
2929
caps = driver.capabilities
3030
expect(caps.proxy).to be_nil
31-
expect(caps.browser_version).to match(/^\d\d\./)
31+
expect(caps.browser_version).to match(/^\d\d\d?\./)
3232
expect(caps.platform_name).not_to be_nil
3333

34-
expect(caps.accept_insecure_certs).to be == false
34+
expect(caps.accept_insecure_certs).to be == (caps.browser_name == 'firefox')
3535
expect(caps.page_load_strategy).to be == 'normal'
3636
expect(caps.implicit_timeout).to be_zero
3737
expect(caps.page_load_timeout).to be == 300000

0 commit comments

Comments
 (0)