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