aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chromedriver.rb22
1 files changed, 15 insertions, 7 deletions
diff --git a/Library/Formula/chromedriver.rb b/Library/Formula/chromedriver.rb
index 2070464dc..514486620 100644
--- a/Library/Formula/chromedriver.rb
+++ b/Library/Formula/chromedriver.rb
@@ -1,13 +1,11 @@
-require 'formula'
-
class Chromedriver < Formula
- homepage 'https://sites.google.com/a/chromium.org/chromedriver/'
- url 'http://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip'
- sha256 '33ee96ea17b00dd8e14e15ca6fe1b1fd4ae7a71f86d8785e562e88d839299d2e'
- version '2.14'
+ homepage "https://sites.google.com/a/chromium.org/chromedriver/"
+ url "http://chromedriver.storage.googleapis.com/2.15/chromedriver_mac32.zip"
+ sha256 "37f7ed1cb1bbafd2139486f44c81ebe0b1561c594d2ad2004bd66c3b07453427"
+ version "2.15"
def install
- bin.install 'chromedriver'
+ bin.install "chromedriver"
end
def plist; <<-EOS.undent
@@ -35,4 +33,14 @@ class Chromedriver < Formula
</plist>
EOS
end
+
+ test do
+ driver = fork do
+ system bin/"chromedriver",
+ "--port=9999", "--log-path=#{testpath}/cd.log"
+ end
+ sleep 5
+ Process.kill("TERM", driver)
+ File.exist? testpath/"cd.log"
+ end
end