Skip to content

Commit 510a2a6

Browse files
committed
Rubocop - Lint/DeprecatedClassMethods
1 parent 47f1790 commit 510a2a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android_tests/lib/run.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
trace_files = []
3333

3434
if one_test
35-
unless File.exists? one_test
35+
unless File.exist? one_test
3636
# ensure ext is .rb
3737
one_test = File.join(File.dirname(one_test),
3838
File.basename(one_test, '.*') + '.rb')
3939
one_test = File.join(dir, test_dir + 'specs/', one_test)
4040
else
4141
one_test = File.expand_path one_test
4242
end
43-
raise "\nTest #{one_test} does not exist.\n" unless File.exists?(one_test)
43+
raise "\nTest #{one_test} does not exist.\n" unless File.exist?(one_test)
4444
Appium::Driver.new(caps).start_driver
4545
# require support (common.rb)
4646
Dir.glob(File.join dir, test_dir + '/*.rb') do |test|

0 commit comments

Comments
 (0)