From 7cfafecb93a1ddb215855a311613cf7fa57c4e88 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 8 Feb 2014 10:59:58 -0800 Subject: css-crush: add test Closes #26533. Signed-off-by: Adam Vandenberg --- Library/Formula/css-crush.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3