aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-02-16 17:28:21 +0800
committerMike McQuaid2015-02-16 13:00:26 +0000
commit9cd164c50c643829a5e3772a29a4c5c5d6126cfa (patch)
treec452bdac9482169867b439acd0dc125b07993ae3 /Library/Formula
parent759f214a953ae0e0642be4cae3ca10b70f1ba2db (diff)
downloadhomebrew-9cd164c50c643829a5e3772a29a4c5c5d6126cfa.tar.bz2
safe-rm 0.12
Closes #36849. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/safe-rm.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Formula/safe-rm.rb b/Library/Formula/safe-rm.rb
index ee77bb252..c7937d587 100644
--- a/Library/Formula/safe-rm.rb
+++ b/Library/Formula/safe-rm.rb
@@ -1,7 +1,7 @@
class SafeRm < Formula
homepage "https://launchpad.net/safe-rm"
- url "https://launchpad.net/safe-rm/trunk/0.10/+download/safe-rm-0.10.tar.gz"
- sha1 "6b829ae68e1fa3c8016e15ab37fcc08caef7712f"
+ url "https://launchpad.net/safe-rm/trunk/0.12/+download/safe-rm-0.12.tar.gz"
+ sha1 "f0abd96a6898ad64389bf4be8773c899986b4618"
head "https://gitorious.org/safe-rm/mainline.git"
@@ -10,9 +10,15 @@ class SafeRm < Formula
end
test do
- file = "a-file"
- touch file
- system "#{bin}/safe-rm", file
- assert !File.exist?(file)
+ foo = testpath/"foo"
+ bar = testpath/"bar"
+ (testpath/".config").mkdir
+ (testpath/".config/safe-rm").write bar
+ touch foo
+ touch bar
+ system "#{bin}/safe-rm", foo
+ assert !File.exist?(foo)
+ shell_output("#{bin}/safe-rm #{bar} 2>&1", 64)
+ assert File.exist?(bar)
end
end