Sha256: 6971b9d53e6cfd25385053dad469fb248a2509e204d1e310b548a09a352cb759
Contents?: true
Size: 1.63 KB
Versions: 13
Compression:
Stored size: 1.63 KB
Contents
# coding: utf-8 require_relative "../../citation_helper" describe "citet* macro with authoryear style" do let(:options) { { "bibliography-tex-style" => "authoryear", "bibliography-database" => "database.bib" } } it "formats a single citation" do expect(formatted_citation("citet*:[Erdos65]", options: options)). to eq "Erdős, Heyting, and Brouwer (1965)" end it "formats a grouped citation" do expect(formatted_citation("citet*:[Erdos65]+[Einstein35]", options: options)). to eq "Erdős, Heyting, and Brouwer (1965); Einstein, Podolsky, and Rosen (1935)" end it "formats a single citation with a prefix" do expect(formatted_citation("citet*:[Erdos65, prefix=see]", options: options)). to eq "Erdős, Heyting, and Brouwer (see 1965)" end it "formats a single citation with a suffix" do expect(formatted_citation("citet*:[Erdos65, suffix=new edition]", options: options)). to eq "Erdős, Heyting, and Brouwer (1965, new edition)" end it "formats a single citation with both a prefix and a suffix" do expect(formatted_citation("citet*:[Erdos65, prefix=see, suffix=new edition]", options: options)). to eq "Erdős, Heyting, and Brouwer (see 1965, new edition)" end it "formats a single citation with a standard locator" do expect(formatted_citation("citet*:[Erdos65, page=41-43]", options: options)). to eq "Erdős, Heyting, and Brouwer (1965, pp. 41-43)" end it "formats a single citation with a custom locator" do expect(formatted_citation("citet*:[Erdos65, locator=somewhere]", options: options)). to eq "Erdős, Heyting, and Brouwer (1965, somewhere)" end end
Version data entries
13 entries across 13 versions & 1 rubygems