From bfde34a404e9b09aaf4005961e8ef7d9a5923bf9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 8 Jun 2013 16:33:00 -0700 Subject: cmake: simplify test slightly --- Library/Formula/cmake.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3