aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-08 16:33:00 -0700
committerAdam Vandenberg2013-06-08 16:33:00 -0700
commitbfde34a404e9b09aaf4005961e8ef7d9a5923bf9 (patch)
treea8fcd70c74a7c853f3f4020b67a28e217d8a2adb /Library/Formula
parent5730f7ebbe100aa12c7bece35cf74c6b81157615 (diff)
downloadhomebrew-bfde34a404e9b09aaf4005961e8ef7d9a5923bf9.tar.bz2
cmake: simplify test slightly
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cmake.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index aa8098058..af781d8cf 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -49,7 +49,7 @@ class Cmake < Formula
end
test do
- File.open('CMakeLists.txt', 'w') {|f| f.write('find_package(Ruby)') }
+ (testpath/'CMakeLists.txt').write('find_package(Ruby)')
system "#{bin}/cmake", '.'
end
end