# coding: utf-8
require_relative "../../citation_helper"
describe "cite macro with rfc-v3 style" do
let(:options) { { "bibliography-style" => "rfc-v3", "bibliography-database" => "database.rfc.xml", "bibliography-passthrough" => "true", "bibliography-prepend-empty" => "false" } }
it "formats a single citation" do
expect(formatted_citation("cite:[RFC2119]", options: options)).
to eq '++++++'
end
it "formats a single citation with locator" do
expect(formatted_citation("cite:[RFC2119, section=1.2.3]", options: options)).
to eq '++++++'
end
it "formats a single bibliography entry" do
expect(formatted_bibliography("cite:[RFC2119]", options: options)).
to eq '+++Key words for use in RFCs to Indicate Requirement LevelsIn many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.+++'
end
end