Skip to content

Commit 007f2fc

Browse files
committed
issue #116: cleanup 'allows the window to be positioned' test
1 parent c102926 commit 007f2fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/browser_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ module Ferrum
126126
end
127127

128128
it "allows the window to be positioned" do
129-
left, top = browser.position
130-
browser.position = { left: left + 10, top: top + 20 }
131-
expect(browser.position).to eq([left + 10, top + 20])
129+
expect(browser.position).to eq([0, 0])
130+
expect { browser.position = { left: 10, top: 20 } }.
131+
to change { browser.position }
132+
expect(browser.position).to eq([10, 20])
132133
end
133134

134135
it "allows the page to be scrolled" do

0 commit comments

Comments
 (0)