homebrew-core/Formula/jsawk.rb
Baptiste Fontaine 48fcfe2a63 jsawk: test added
Closes Homebrew/homebrew#35816.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-13 13:18:22 +00:00

19 lines
450 B
Ruby

class Jsawk < Formula
homepage "https://github.com/micha/jsawk"
url "https://github.com/micha/jsawk/archive/1.4.tar.gz"
sha1 "4f2c962c8a5209764116457682985854400cbf24"
head "https://github.com/micha/jsawk.git"
depends_on "spidermonkey"
def install
mv "README.markdown", "README"
bin.install "jsawk"
end
test do
cmd = %(#{bin}/jsawk 'this.a = "foo"')
assert_equal %({"a":"foo"}\n), pipe_output(cmd, "{}")
end
end