aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-17 11:12:54 -0500
committerJack Nagel2014-03-17 11:12:54 -0500
commite4c1858ce014b5cb8c0ab6dc752b26211926fd84 (patch)
tree42ec339996f30eace209b7d221968745ac78c599 /Library/Formula
parentd87ec16871e5ae947f6b355c2f587c538c03cb04 (diff)
downloadhomebrew-e4c1858ce014b5cb8c0ab6dc752b26211926fd84.tar.bz2
cvs: clean up test
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cvs.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/cvs.rb b/Library/Formula/cvs.rb
index 3f7685b8a..116c5b790 100644
--- a/Library/Formula/cvs.rb
+++ b/Library/Formula/cvs.rb
@@ -50,15 +50,13 @@ class Cvs < Formula
end
test do
- system "mkdir", "cvsroot"
-
- cvsroot = %x[echo ${PWD}/cvsroot].chomp
-
+ cvsroot = testpath/"cvsroot"
+ cvsroot.mkpath
system "#{bin}/cvs", "-d", cvsroot, "init"
mkdir "cvsexample" do
- ENV['CVSROOT'] = "#{cvsroot}"
- system "#{bin}/cvs", "import", "-m ", "'dir structure'", "cvsexample", "homebrew", "start"
+ ENV["CVSROOT"] = cvsroot
+ system "#{bin}/cvs", "import", "-m", "dir structure", "cvsexample", "homebrew", "start"
end
end
end