Sha256: e6f8dde4dae6ffca01ad9d61ef8fe876bb4b143f7cd65dab4d94d4b5c6bdf8ea
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
# coding: utf-8 require_relative "citation_helper" describe "cite macro with apa style" do it "formats a complex citation" do expect(formatted_citation("cite:[Erdos65, prefix=see]+[Einstein35, page=41-43]", options: { "bibliography-style" => "apa", "bibliography-hyperlinks" => "true" })). to eq "(xref:bibliography-default-Einstein35[Einstein, Podolsky, & Rosen, 1935, pp. 41-43]; " + "xref:bibliography-default-Erdos65[seeErdős, Heyting, & Brouwer, 1965])" end end describe "fullcite macro with apa style" do it "formats a complex citation" do expect(formatted_citation("fullcite:[Erdos65]", options: { "bibliography-style" => "apa" })). to eq "Erdős, P., Heyting, A., & Brouwer, L. E. (1965). Some very hard sums. _Difficult Maths Today_, 30." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-bibliography-0.5.0 | spec/macros_spec.rb |
asciidoctor-bibliography-0.5.1 | spec/macros_spec.rb |