diff options
| -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 |
