From cc85c78355bc83a18fa7eb213482ab42e1d9b8b0 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Tue, 2 Jan 2024 21:58:58 -0600 Subject: [PATCH] [rb] change allowed types for logger methods --- rb/sig/lib/selenium/webdriver/common/logger.rbs | 4 ++-- .../selenium/webdriver/spec_support/test_environment.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rb/sig/lib/selenium/webdriver/common/logger.rbs b/rb/sig/lib/selenium/webdriver/common/logger.rbs index 76373351eeccc..37fe4622e723e 100644 --- a/rb/sig/lib/selenium/webdriver/common/logger.rbs +++ b/rb/sig/lib/selenium/webdriver/common/logger.rbs @@ -17,9 +17,9 @@ module Selenium def io: () -> IO - def ignore: (*Symbol ids) -> Array[Symbol] + def ignore: (*Symbol | Array[Symbol] ids) -> Array[Symbol] - def allow: (*Symbol ids) -> Array[Symbol] + def allow: (*Symbol | Array[Symbol] ids) -> Array[Symbol] def debug: (String message, ?id: Symbol | Array[Symbol] id) ?{ () -> void } -> void diff --git a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb index 5ded602ad5093..e317a6d9e801c 100644 --- a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb +++ b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb @@ -28,7 +28,7 @@ def initialize @create_driver_error_count = 0 $LOAD_PATH.insert(0, root.join('bazel-bin/rb/lib').to_s) if File.exist?(root.join('bazel-bin/rb/lib')) - WebDriver.logger.ignore(%i[logger_info]) + WebDriver.logger.ignore(:logger_info) SeleniumManager.bin_path = root.join('bazel-bin/rb/bin').to_s if File.exist?(root.join('bazel-bin/rb/bin')) @driver = ENV.fetch('WD_SPEC_DRIVER', 'chrome').tr('-', '_').to_sym