diff options
Diffstat (limited to 'Library')
| -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 |
