diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elinks.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/elinks.rb b/Library/Formula/elinks.rb index 6f56e3d3a..3c6a5becc 100644 --- a/Library/Formula/elinks.rb +++ b/Library/Formula/elinks.rb @@ -27,4 +27,14 @@ class Elinks < Formula "--enable-256-colors" system "make install" end + + test do + (testpath/"test.html").write <<-EOS.undent + <!DOCTYPE html> + <title>elinks test</title> + Hello world! + <ol><li>one</li><li>two</li></ol> + EOS + assert_match /^\s*Hello world!\n+ *1. one\n *2. two\s*$/, `elinks test.html` + end end |
