Skip to content

Instantly share code, notes, and snippets.

@DavidGamba
Created December 29, 2014 16:24
Show Gist options
  • Save DavidGamba/ec4f376eb47bcad6e7de to your computer and use it in GitHub Desktop.
Save DavidGamba/ec4f376eb47bcad6e7de to your computer and use it in GitHub Desktop.
manpage backend
# 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