From 46fc3a33403f941c07ad07d1d6f070db4f558d0c Mon Sep 17 00:00:00 2001 From: Caesar Schinas Date: Tue, 22 Aug 2017 17:13:57 -0300 Subject: [PATCH] timedog: add head spec (#17103) and add a test --- Formula/timedog.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/timedog.rb b/Formula/timedog.rb index 219d4339b0..80c730b2b6 100644 --- a/Formula/timedog.rb +++ b/Formula/timedog.rb @@ -3,10 +3,15 @@ class Timedog < Formula homepage "https://github.com/nlfiedler/timedog" url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/timedog/timedog-1.3.zip" sha256 "4683f37a28407dabc5c56dc45e6480dd2db460289321edce8980a236cc2787ec" + head "https://github.com/nlfiedler/timedog.git" bottle :unneeded def install bin.install "timedog" end + + test do + assert_match "Cannot locate timemachine directory", shell_output("#{bin}/timedog 2>&1", 2) + end end