A platform for community discussion. Free, open, simple.
DEV: check for google-chrome-stable first
Sam Saffron21c4754324bb
diff --git a/lib/autospec/qunit_runner.rb b/lib/autospec/qunit_runner.rbindex 91e3d3983cb..7df2f5ac65f 100644--- a/lib/autospec/qunit_runner.rb+++ b/lib/autospec/qunit_runner.rb@@ -114,9 +114,13 @@ module Autospecprivatedef ensure_chrome_is_installed- raise ChromeNotInstalled.new unless system("command -v google-chrome >/dev/null;")- if Gem::Version.new(`$(command -v google-chrome) --version`.match(/[\d\.]+/)[0]) < Gem::Version.new("59")+ binary = "google-chrome-stable" if system("command -v google-chrome-stable >/dev/null;")+ binary ||= "google-chrome" if system("command -v google-chrome >/dev/null;")++ raise ChromeNotInstalled.new if !binary++ if Gem::Version.new(`#{binary} --version`.match(/[\d\.]+/)[0]) < Gem::Version.new("59")raise "Chrome 59 or higher is required"endend