Skip to content

Commit 432144f

Browse files
committed
Rubocop - Style/MethodDefParentheses
1 parent 510a2a6 commit 432144f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

android_tests/lib/android/specs/android/element/text.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rake android['android/element/text']
22
describe 'android/element/text' do
33

4-
def must_raise_no_element &block
4+
def must_raise_no_element(&block)
55
proc { block.call }.must_raise Selenium::WebDriver::Error::NoSuchElementError
66
end
77

android_tests/lib/android/specs/android/element/textfield.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe 'android/element/textfield' do
2-
def must_raise_no_element &block
2+
def must_raise_no_element(&block)
33
proc { block.call }.must_raise Selenium::WebDriver::Error::NoSuchElementError
44
end
55

android_tests/lib/android/specs/common/device.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
wait_true { app_strings.has_key? 'activity_save_restore' }
4747
end
4848

49-
def must_return_element element
49+
def must_return_element(element)
5050
element.class.must_equal Selenium::WebDriver::Element
5151
end
5252

android_tests/lib/android/specs/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ def is_sauce
6969
end
7070

7171
t 'absolute_app_path' do
72-
def absolute_app_path path
72+
def absolute_app_path(path)
7373
$driver.class.absolute_app_path(caps: { app: path } )
7474
end
7575

76-
def validate_path path
76+
def validate_path(path)
7777
absolute_app_path(path).must_equal path
7878
end
7979

0 commit comments

Comments
 (0)