diff options
| author | Mike Naberezny | 2014-05-20 10:52:32 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-20 15:01:14 -0700 |
| commit | 0675df9a22f0b581d0089844acfc0410247ccbe2 (patch) | |
| tree | 3e0363405fa90d9f0efa430416ae26e94da46dc3 /Library/Formula/namazu.rb | |
| parent | 5629fae930ea0492c8e438c58d232e9c9a78cf0c (diff) | |
| download | homebrew-0675df9a22f0b581d0089844acfc0410247ccbe2.tar.bz2 | |
namazu: use full path of executable
Closes #29432.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/namazu.rb')
| -rw-r--r-- | Library/Formula/namazu.rb | 11 |
1 files changed, 5 insertions, 6 deletions
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 |
