Skip to content

Commit 7907af6

Browse files
committed
Rubocop - Style/BlockComments
1 parent 95d34b7 commit 7907af6

File tree

5 files changed

+29
-38
lines changed

5 files changed

+29
-38
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
describe 'common/helper' do
22
wait_opts = { timeout: 0.2, interval: 0.2 } # max_wait, interval
33

4-
=begin
5-
There's no `must_not_raise` as the opposite of must_raise
4+
# There's no `must_not_raise` as the opposite of must_raise
65

7-
By default code is expected to not raise exceptions.
8-
must_not_raise is a no-op.
9-
=end
6+
# By default code is expected to not raise exceptions.
7+
# must_not_raise is a no-op.
108

119
# wait is a success unless an error is raised
1210
# max_wait=0 is infinity to use 0.1

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
=begin
2-
Skip:
3-
status # status patches are already tested in driver.rb
4-
raw_execute # debug output for Pry
5-
=end
1+
# Skip:
2+
# status # status patches are already tested in driver.rb
3+
# raw_execute # debug output for Pry
4+
65
describe 'common/patch' do
76
# Attributes are busted in Android.
87
# Blocked on https://github.com/appium/appium/issues/628

android_tests/lib/android/specs/driver.rb

+13-15
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ def validate_path(path)
130130
end
131131
end
132132

133-
=begin
134-
Skip:
135-
ios_capabilities # save for iOS tests
136-
absolute_app_path # tested already by starting the driver for this test
137-
server_url # sauce labs only
138-
=end
133+
# Skip:
134+
# ios_capabilities # save for iOS tests
135+
# absolute_app_path # tested already by starting the driver for this test
136+
# server_url # sauce labs only
137+
139138
t 'restart' do
140139
set_wait 1 # ensure wait is 1 before we restart.
141140
restart
@@ -146,15 +145,14 @@ def validate_path(path)
146145
driver.browser.must_equal :Android
147146
end
148147

149-
=begin
150-
Skip:
151-
screenshot # this is slow and already tested by Appium
152-
driver_quit # tested by restart
153-
start_driver # tested by restart
154-
no_wait # posts value to server, it's not stored locally
155-
set_wait # posts value to server, it's not stored locally
156-
execute_script # 'mobile: ' is deprecated and plain executeScript unsupported
157-
=end
148+
# Skip:
149+
# screenshot # this is slow and already tested by Appium
150+
# driver_quit # tested by restart
151+
# start_driver # tested by restart
152+
# no_wait # posts value to server, it's not stored locally
153+
# set_wait # posts value to server, it's not stored locally
154+
# execute_script # 'mobile: ' is deprecated and plain executeScript unsupported
155+
158156
t 'default_wait' do
159157
set_wait 1
160158
default_wait.must_equal 1

android_tests/lib/format.rb

+5-7
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@
3939
puts line2
4040
end
4141

42-
=begin
4342
# for Pry
44-
class Object
45-
def must_equal b
46-
raise 'not equal' unless self == b
47-
end
48-
end
49-
=end
43+
# class Object
44+
# def must_equal b
45+
# raise 'not equal' unless self == b
46+
# end
47+
# end

android_tests/lib/run.rb

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
require 'hashdiff'
55
require_relative '../../lib/appium_lib'
66

7-
=begin
8-
Run all Android tests:
9-
ruby run.rb android
7+
# Run all Android tests:
8+
# ruby run.rb android
109

11-
Run only the view album test:
12-
ruby run.rb ios view_album
13-
=end
10+
# Run only the view album test:
11+
# ruby run.rb ios view_album
1412

1513
# Sanity check
1614
a = OpenStruct.new x: 'ok'

0 commit comments

Comments
 (0)