From 9627a4688271caf6f03f3b1cd884b443286da4f2 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Mon, 26 Sep 2016 12:10:41 -0400 Subject: [PATCH] alac: fix test Discard the sample resource which is now broken; use our new test.m4a instead. --- Formula/alac.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Formula/alac.rb b/Formula/alac.rb index 312d4275f39..d562c103ad0 100644 --- a/Formula/alac.rb +++ b/Formula/alac.rb @@ -12,20 +12,13 @@ class Alac < Formula sha256 "20cca431ce69d7eb2e5d894ebbfffdbc633eef2b3447be6d0afdb7c25cac8c0e" => :mavericks end - resource "sample" do - url "http://download.wavetlan.com/SVV/Media/HTTP/AAC/iTunes/iTunes_test4_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a" - sha256 "c2b36e40aa48348837515172874db83c344bfe3fd9108956fb12c488be8e17d9" - end - def install system "make", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}" bin.install "alac" end test do - resource("sample").stage do - assert_equal "file type: mp4a\n", - shell_output("#{bin}/alac -t iTunes_test4_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a", 100) - end + sample = test_fixtures("test.m4a") + assert_equal "file type: mp4a\n", shell_output("#{bin}/alac -t #{sample}", 100) end end