From b25913c2beafe311fe403fd037f417b47b79d3f4 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 d77c22d4..8526789a 100644 --- a/lib/ferrum/page.rb +++ b/lib/ferrum/page.rb @@ -339,7 +339,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] #