jsonpp: add test
Closes Homebrew/homebrew#26600. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
74a97dbf2f
commit
1c11978636
|
@ -9,4 +9,17 @@ class Jsonpp < Formula
|
|||
def install
|
||||
bin.install 'jsonpp'
|
||||
end
|
||||
|
||||
test do
|
||||
IO.popen("#{bin}/jsonpp", "w+") do |pipe|
|
||||
pipe.puts '{"foo":"bar","baz":"qux"}'
|
||||
pipe.close_write
|
||||
assert_equal <<-EOS.undent, pipe.read
|
||||
{
|
||||
"foo": "bar",
|
||||
"baz": "qux"
|
||||
}
|
||||
EOS
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue