aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/v8.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/v8.rb')
-rw-r--r--Library/Formula/v8.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/v8.rb b/Library/Formula/v8.rb
index 8259ae276..751fecb8b 100644
--- a/Library/Formula/v8.rb
+++ b/Library/Formula/v8.rb
@@ -64,4 +64,8 @@ class V8 < Formula
bin.install "d8", "mksnapshot", "process", "shell" => "v8"
end
end
+
+ test do
+ assert_equal "Hello World!", pipe_output("#{bin}/v8 -e 'print(\"Hello World!\")'").chomp
+ end
end