gnu-apl: test interpreter, not version

Closes Homebrew/homebrew#35297.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Hannu Hartikainen 2014-12-28 00:47:14 +02:00 committed by Mike McQuaid
parent 9f5f1b38dc
commit d42affe64b

View file

@ -23,7 +23,10 @@ class GnuApl < Formula
end
test do
ENV["TERM"] = "dumb"
system "#{bin}/apl", "--version"
(testpath/"hello.apl").write <<-EOS.undent
'Hello world'
)OFF
EOS
assert_match /Hello world/, shell_output("#{bin}/apl -s -f hello.apl")
end
end