aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-08 10:59:58 -0800
committerAdam Vandenberg2014-02-08 11:35:30 -0800
commit7cfafecb93a1ddb215855a311613cf7fa57c4e88 (patch)
treecfea1e7919ad45841258d17192714ae37e129d65 /Library/Formula
parent37f35fefa4eada4350109eb7c7e0174327f95ef1 (diff)
downloadhomebrew-7cfafecb93a1ddb215855a311613cf7fa57c4e88.tar.bz2
css-crush: add test
Closes #26533. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/css-crush.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/css-crush.rb b/Library/Formula/css-crush.rb
index d099d417c..430bce5b8 100644
--- a/Library/Formula/css-crush.rb
+++ b/Library/Formula/css-crush.rb
@@ -12,4 +12,16 @@ class CssCrush < Formula
php "#{libexec}/cli.php" "$@"
EOS
end
+
+ test do
+ path = testpath/"test.crush"
+ path.write <<-EOS.undent
+ @define foo #123456;
+ p { color: $(foo); }
+ EOS
+
+ output = `#{bin}/csscrush #{path}`.strip
+ assert_equal "p{color:#123456}", output
+ assert_equal 0, $?.exitstatus
+ end
end