fibjs: prefer shell_output in test do
This commit is contained in:
parent
f333efca2f
commit
9448bdf5ad
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue