From 7cc1a63351232b10f9ce191104efe6e9c72acca2 Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Tue, 19 Nov 2024 11:30:02 +0300 Subject: [PATCH] chore: rubocop --- lib/ferrum/errors.rb | 3 ++- lib/ferrum/page.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ferrum/errors.rb b/lib/ferrum/errors.rb index b42fb874..a1680cc6 100644 --- a/lib/ferrum/errors.rb +++ b/lib/ferrum/errors.rb @@ -80,7 +80,8 @@ def initialize(message = "Could not compute content quads") class InvalidScreenshotFormatError < Error def initialize(format) - super("Invalid value #{format} for option `:format` (#{Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(' | ')})") + valid_formats = Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(" | ") + super("Invalid value #{format} for option `:format` (#{valid_formats})") end end diff --git a/lib/ferrum/page.rb b/lib/ferrum/page.rb index 6a295744..c019b831 100644 --- a/lib/ferrum/page.rb +++ b/lib/ferrum/page.rb @@ -337,7 +337,8 @@ def bypass_csp(enabled: true) end # - # Activates (focuses) the target for the given page. When you have multiple tabs you work with, and you need to switch a given one. + # Activates (focuses) the target for the given page. + # When you have multiple tabs you work with, and you need to switch a given one. # # @return [Boolean] #