From 0675df9a22f0b581d0089844acfc0410247ccbe2 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Tue, 20 May 2014 10:52:32 -0700 Subject: namazu: use full path of executable Closes #29432. Signed-off-by: Adam Vandenberg --- Library/Formula/namazu.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/namazu.rb b/Library/Formula/namazu.rb index da6b4e4d1..5f47edcae 100644 --- a/Library/Formula/namazu.rb +++ b/Library/Formula/namazu.rb @@ -43,12 +43,11 @@ class Namazu < Formula test do data_file = testpath/"data.txt" - data_file.write <<-EOS.undent - This is a Namazu test case for Homebrew. - EOS + data_file.write "This is a Namazu test case for Homebrew." mkpath "idx" - system "mknmz", "-O", "idx", data_file - search_result = `namazu -a Homebrew idx` - assert search_result.include?("data.txt") + system bin/"mknmz", "-O", "idx", data_file + search_result = `#{bin}/namazu -a Homebrew idx` + assert search_result.include?(data_file) + assert_equal 0, $?.exitstatus end end -- cgit v1.2.3