diff options
| author | Mike Naberezny | 2014-02-08 10:59:58 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-08 11:35:30 -0800 |
| commit | 7cfafecb93a1ddb215855a311613cf7fa57c4e88 (patch) | |
| tree | cfea1e7919ad45841258d17192714ae37e129d65 | |
| parent | 37f35fefa4eada4350109eb7c7e0174327f95ef1 (diff) | |
| download | homebrew-7cfafecb93a1ddb215855a311613cf7fa57c4e88.tar.bz2 | |
css-crush: add test
Closes #26533.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/css-crush.rb | 12 |
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 |
