Skip to content

Commit 9ad322b

Browse files
authored
Merge pull request #34 from Kazhuu/ruby3-fix
Ruby 3 fix: exist? instead of exists?
2 parents 9199bbc + b44f38b commit 9ad322b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/browserstack/localbinary.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def initialize
3434
end
3535

3636
def download(dest_parent_dir)
37-
unless File.exists? dest_parent_dir
37+
unless File.exist? dest_parent_dir
3838
Dir.mkdir dest_parent_dir
3939
end
4040
uri = URI.parse(@http_path)
@@ -63,7 +63,7 @@ def binary_path
6363
dest_parent_dir = get_available_dirs
6464
binary_path = File.join(dest_parent_dir, "BrowserStackLocal#{".exe" if @windows}")
6565

66-
if File.exists? binary_path
66+
if File.exist? binary_path
6767
binary_path
6868
else
6969
binary_path = download(dest_parent_dir)

0 commit comments

Comments
 (0)