aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/emacs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/emacs.rb')
-rw-r--r--Library/Formula/emacs.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 59d9736a9..08992a3f1 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -161,9 +161,7 @@ class Emacs < Formula
end
test do
- output = `'#{bin}/emacs' --batch --eval="(print (+ 2 2))"`
- assert $?.success?
- assert_equal "4", output.strip
+ assert_equal "4", shell_output("#{bin}/emacs --batch --eval=\"(print (+ 2 2))\"").strip
end
end