spec/writers/ris_writer_spec.rb in bolognese-0.13.4 vs spec/writers/ris_writer_spec.rb in bolognese-0.13.6

- old
+ new

@@ -174,20 +174,20 @@ it "keywords with subject scheme" do input = "https://doi.org/10.1594/pangaea.721193" subject = Bolognese::Metadata.new(input: input, from: "datacite") ris = subject.ris.split("\r\n") - expect(ris[0]).to eq("TY - DATA") - expect(ris[1]).to eq("T1 - Seawater carbonate chemistry and processes during experiments with Crassostrea gigas, 2007, supplement to: Kurihara, Haruko; Kato, Shoji; Ishimatsu, Atsushi (2007): Effects of increased seawater pCO2 on early development of the oyster Crassostrea gigas. Aquatic Biology, 1(1), 91-98") - expect(ris[2]).to eq("AU - Kurihara, Haruko") - expect(ris[5]).to eq("DO - 10.1594/pangaea.721193") - expect(ris[6]).to eq("UR - https://doi.pangaea.de/10.1594/PANGAEA.721193") - expect(ris[8]).to eq("KW - GetInfo") - expect(ris[9]).to eq("KW - Animalia") - expect(ris[10]).to eq("KW - Bottles or small containers/Aquaria ( 20 L)") - expect(ris[49]).to eq("PY - 2007") - expect(ris[50]).to eq("PB - PANGAEA - Data Publisher for Earth & Environmental Science") - expect(ris[51]).to eq("LA - eng") - expect(ris[52]).to eq("ER - ") + expect(ris.first).to eq("TY - DATA") + expect(ris).to include("T1 - Seawater carbonate chemistry and processes during experiments with Crassostrea gigas, 2007, supplement to: Kurihara, Haruko; Kato, Shoji; Ishimatsu, Atsushi (2007): Effects of increased seawater pCO2 on early development of the oyster Crassostrea gigas. Aquatic Biology, 1(1), 91-98") + expect(ris).to include("AU - Kurihara, Haruko") + expect(ris).to include("DO - 10.1594/pangaea.721193") + expect(ris).to include("UR - https://doi.pangaea.de/10.1594/PANGAEA.721193") + expect(ris).to include("KW - GetInfo") + expect(ris).to include("KW - Animalia") + expect(ris).to include("KW - Bottles or small containers/Aquaria ( 20 L)") + expect(ris).to include("PY - 2007") + expect(ris).to include("PB - PANGAEA - Data Publisher for Earth & Environmental Science") + expect(ris).to include("LA - eng") + expect(ris.last).to eq("ER - ") end end end