aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/swftools.rb
diff options
context:
space:
mode:
authorJack Nagel2014-10-19 01:14:32 -0500
committerJack Nagel2014-10-19 01:18:26 -0500
commit878e2308d996481324315f3d6fb523ec38f85082 (patch)
tree3672190756120b5d46661e06683dbeb390774553 /Library/Formula/swftools.rb
parent623194855e4083d7dd0120147d85eea8a08d938f (diff)
downloadhomebrew-878e2308d996481324315f3d6fb523ec38f85082.tar.bz2
Provide a method to access test fixtures
Formulae should not require knowledge of Homebrew's internal directory structure, and we should be able to alter it without modifying individual formulae.
Diffstat (limited to 'Library/Formula/swftools.rb')
-rw-r--r--Library/Formula/swftools.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/swftools.rb b/Library/Formula/swftools.rb
index fd1854342..a88cb9580 100644
--- a/Library/Formula/swftools.rb
+++ b/Library/Formula/swftools.rb
@@ -32,8 +32,7 @@ class Swftools < Formula
end
test do
- test_png = HOMEBREW_LIBRARY/"Homebrew/test/fixtures/test.png"
- system "#{bin}/png2swf", "swftools_test.swf", test_png
+ system "#{bin}/png2swf", "swftools_test.swf", test_fixtures("test.png")
end
end