fibjs: prefer shell_output in test do

This commit is contained in:
Dominyk Tiller 2016-01-10 08:05:46 +00:00
parent f333efca2f
commit 9448bdf5ad

View file

@ -14,7 +14,7 @@ class Fibjs < Formula
sha256 "dd613776c5fe0bf2719ebfa910a39cdd23c94eb3d9deeafc90deefb158604fc2" => :mavericks
end
depends_on "cmake" => :build
depends_on "cmake" => :build
def install
system "./build", "Release", "-j#{ENV.make_jobs}"
@ -25,8 +25,7 @@ class Fibjs < Formula
path = testpath/"test.js"
path.write "console.log('hello');"
output = `#{bin}/fibjs #{path}`.strip
output = shell_output("#{bin}/fibjs #{path}").strip
assert_equal "hello", output
assert_equal 0, $?.exitstatus
end
end