diff --git a/Formula/fibjs.rb b/Formula/fibjs.rb index 19e8d5a61e..36a315d4ad 100644 --- a/Formula/fibjs.rb +++ b/Formula/fibjs.rb @@ -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