1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

Replacing 'safari' with 'open' in Capybara::Poltergeist::Inspector, since there is no 'safari' CLI on Mac OS X

This commit is contained in:
Stuart Montgomery 2012-09-09 10:23:48 -07:00
parent 2af0ab911a
commit bb98fd5eb5

View file

@ -1,6 +1,6 @@
module Capybara::Poltergeist
class Inspector
BROWSERS = %w(chromium chromium-browser google-chrome safari)
BROWSERS = %w(chromium chromium-browser google-chrome open)
def self.detect_browser
@browser ||= BROWSERS.find { |name| system("which #{name} &>/dev/null") }