Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
emacs: add a test
Browse files Browse the repository at this point in the history
Closes #27718.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
tedpennings authored and adamv committed Mar 20, 2014
1 parent 6b7c9f7 commit 775c722
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Library/Formula/emacs.rb
Expand Up @@ -148,6 +148,12 @@ def caveats
end
return s
end

test do
output = `'#{bin}/emacs' --batch --eval="(print (+ 2 2))"`
assert $?.success?
assert_equal "4", output.strip
end
end

__END__
Expand Down

0 comments on commit 775c722

Please sign in to comment.