Skip to content

Commit 7d7db13

Browse files
committed
Fix warnings
1 parent 561b9b1 commit 7d7db13

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/ferrum/page/screenshot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def screenshot(**opts)
3838
save_file(path, bin)
3939
end
4040

41-
def pdf(**opts)
41+
def pdf(**opts)
4242
path, encoding = common_options(**opts)
4343
options = pdf_options(**opts).merge(transferMode: "ReturnAsStream")
4444
handle = command("Page.printToPDF", **options).fetch("stream")

spec/browser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module Ferrum
5757
path = "#{PROJECT_ROOT}/spec/support/no_chrome"
5858

5959
expect {
60-
browser = Browser.new(browser_path: path)
60+
Browser.new(browser_path: path)
6161
}.to raise_error(
6262
Ferrum::ProcessTimeoutError,
6363
"Browser did not produce websocket url within 2 seconds"

spec/support/server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def initialize(app: nil, host: "127.0.0.1", port: nil)
6464
@host = host
6565
@port = port || find_available_port(host)
6666
@app = app || Application.new
67+
@server_thread = nil
6768
end
6869

6970
def base_url(path = nil)

0 commit comments

Comments
 (0)