Created
December 29, 2014 16:24
-
-
Save DavidGamba/ec4f376eb47bcad6e7de to your computer and use it in GitHub Desktop.
manpage backend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: UTF-8 | |
unless defined? ASCIIDOCTOR_PROJECT_DIR | |
$: << File.dirname(__FILE__); $:.uniq! | |
require 'test_helper' | |
end | |
context 'Converter' do | |
context 'ManPageConverter' do | |
test 'should generate multiple authors in header' do | |
input = <<-EOS | |
= asciidoctor(1) | |
Dan Allen; Sarah White; Ryan Waldron | |
EOS | |
output = render_string input, :converter => Asciidoctor::Converter::ManPageConverter | |
assert_match(/.\\" Author: Dan Allen, Sarah White, Ryan Waldron/, output) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment