Skip to content

Commit b559603

Browse files
committed
Get rif of warnings
1 parent 1f143a5 commit b559603

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/ferrum/browser/process.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def initialize(options)
6464
return
6565
end
6666

67-
@xvfb = nil
67+
@pid = @xvfb = @user_data_dir = nil
6868
@logger = options[:logger]
6969
@process_timeout = options.fetch(:process_timeout, PROCESS_TIMEOUT)
7070

lib/ferrum/frame.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Frame
1111
attr_accessor :id, :name
1212

1313
def initialize(id, page, parent_id = nil)
14+
@execution_id = nil
1415
@id, @page, @parent_id = id, page, parent_id
1516
end
1617

spec/browser_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,9 @@ module Ferrum
563563

564564
it "does not run into content quads error" do
565565
browser.go_to("/ferrum/index")
566-
Node.any_instance.stub(:get_content_quads)
567-
.and_raise(Ferrum::BrowserError, 'message' => 'Could not compute content quads')
566+
567+
allow_any_instance_of(Node).to receive(:get_content_quads).and_raise(Ferrum::BrowserError, 'message' => 'Could not compute content quads')
568+
568569
browser.at_xpath("//a[text() = 'JS redirect']").click
569570
expect(browser.body).to include("Hello world")
570571
end

0 commit comments

Comments
 (0)