Skip to content

Commit 3bfee4d

Browse files
committed
Try truncate
1 parent ae4ad27 commit 3bfee4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/test/system/bootstrap_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class BootstrapTest < ApplicationSystemTestCase
8282

8383
def bounds(node)
8484
client_rect = evaluate_script("arguments[0].getBoundingClientRect()", node.native)
85-
[client_rect["left"], client_rect["top"], client_rect["right"], client_rect["bottom"]]
85+
[client_rect["left"].truncate, client_rect["top"].truncate, client_rect["right"].truncate, client_rect["bottom"].truncate]
8686
.tap { |array| puts "#{array}" }
8787
end
8888
end

0 commit comments

Comments
 (0)