diff options
| author | Mike McQuaid | 2014-09-21 10:59:52 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-21 10:59:52 -0700 |
| commit | b89f2cfa7860721a6da5554a1dee0a4a19d2f40c (patch) | |
| tree | 7968bfa97d23e8b73cf780ed4fe3593ba7073db1 /Library/Formula | |
| parent | 247edb4dd705e7f37235737743f298e2697fae57 (diff) | |
| download | homebrew-b89f2cfa7860721a6da5554a1dee0a4a19d2f40c.tar.bz2 | |
sshrc: add test.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sshrc.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/sshrc.rb b/Library/Formula/sshrc.rb index 201c08e92..d345402f0 100644 --- a/Library/Formula/sshrc.rb +++ b/Library/Formula/sshrc.rb @@ -8,4 +8,16 @@ class Sshrc < Formula def install bin.install "sshrc" end + + test do + ENV["HOME"] = testpath + touch testpath/".sshrc" + (testpath/"ssh").write <<-EOS.undent + #!/bin/sh + true + EOS + chmod 0755, testpath/"ssh" + ENV.prepend_path "PATH", testpath + system "sshrc" + end end |
