Sha256: ec6c6158e52fe48a98b2cdd3dd7754211ebdb638a259bd5938d416632ca6c71b
Contents?: true
Size: 819 Bytes
Versions: 19
Compression:
Stored size: 819 Bytes
Contents
require 'spec_helper' require 'bolognese/cli' describe Bolognese::CLI do context "find_from_format_by_id", vcr: true do let(:subject) do described_class.new end it "crossref" do id = "https://doi.org/10.7554/eLife.01567" expect(subject.find_from_format_by_id(id)).to eq("crossref") end it "datacite" do id = "https://doi.org/10.5061/DRYAD.8515" expect(subject.find_from_format_by_id(id)).to eq("datacite") end it "codemeta" do id = "https://github.com/datacite/maremma" expect(subject.find_from_format_by_id(id)).to eq("codemeta") end it "schema_org" do id = "https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GAOC03" expect(subject.find_from_format_by_id(id)).to eq("schema_org") end end end
Version data entries
19 entries across 19 versions & 1 rubygems