require "spec_helper"
describe Asciidoctor::RFC::V2::Converter do
it "renders a paragraph" do
expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc2)).to be_equivalent_to <<~'OUTPUT'
= Document title
:abbrev: abbrev_value
:docName:
Author
== Section 1
[[id]]
[keep-with-next=true, keep-with-previous=true, foo=bar]
Lorem ipsum.
INPUT
OUTPUT
end
it "suppresses smart apostrophes" do
expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc2, header_footer: true)).to be_equivalent_to <<~'OUTPUT'
= Document title
:abbrev: abbrev_value
:smart-quotes: false
Author
== Dante's Revenge
Don't panic!
INPUT
Document title
OUTPUT
end
it "allows smart apostrophes" do
expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc2)).to be_equivalent_to <<~'OUTPUT'
= Document title
:abbrev: abbrev_value
:docName:
Author
== Dante's Revenge
Don't panic!
INPUT
OUTPUT
end
end