Skip to content

Commit

Permalink
Expand paths for correct File.exist? calls
Browse files Browse the repository at this point in the history
Signed-off-by: Titus Fortner <[email protected]>
  • Loading branch information
nixme authored and titusfortner committed Jan 27, 2016
1 parent 1d49fa6 commit 709ddbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/firefox/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def windows_path

def macosx_path
path = "/Applications/Firefox.app/Contents/MacOS/firefox-bin"
path = "~/Applications/Firefox.app/Contents/MacOS/firefox-bin" unless File.exist?(path)
path = Platform.find_binary("firefox-bin") unless File.exist?(path)
path = "~/Applications/Firefox.app/Contents/MacOS/firefox-bin" unless File.exist?(File.expand_path(path))
path = Platform.find_binary("firefox-bin") unless File.exist?(File.expand_path?(path))

path
end
Expand Down

0 comments on commit 709ddbc

Please sign in to comment.