Skip to content

Commit 0989872

Browse files
committed
fix rubocop
1 parent 654c0c2 commit 0989872

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/functional/android/webdriver/device_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def test_page_source
4848
assert s_source.include?('io.appium.android.apis')
4949

5050
if @@core.automation_name == :espresso
51-
assert xml[1].elements.each('//*') { |v| v }.map(&:name).size >= 20 # rubocop:disable Lint/Void:
51+
assert xml[1].elements.each('//*') { |v| v }.map(&:name).size >= 20
5252
else
53-
names = xml[2].elements.each('//*') { |v| v }.map(&:name) # rubocop:disable Lint/Void:
53+
names = xml[2].elements.each('//*') { |v| v }.map(&:name)
5454
assert_equal 'hierarchy', names[0]
5555
assert names.size >= 5
5656
end

test/functional/ios/webdriver/device_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def test_page_source
7575

7676
assert !source.include?('AppiumAUT')
7777
assert source.include?('XCUIElementTypeApplication type')
78-
assert xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70 # rubocop:disable Lint/Void
78+
assert xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70
7979

8080
# Roughly matching...
81-
assert s_xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70 # rubocop:disable Lint/Void
81+
assert s_xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70
8282
end
8383

8484
def test_location

0 commit comments

Comments
 (0)