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

Version Path
bolognese-0.10.11 spec/find_from_format_spec.rb
bolognese-0.10.10 spec/find_from_format_spec.rb
bolognese-0.10.9 spec/find_from_format_spec.rb
bolognese-0.10.8 spec/find_from_format_spec.rb
bolognese-0.10.7 spec/find_from_format_spec.rb
bolognese-0.10.6 spec/find_from_format_spec.rb
bolognese-0.10.5 spec/find_from_format_spec.rb
bolognese-0.10.4 spec/find_from_format_spec.rb
bolognese-0.10.3 spec/find_from_format_spec.rb
bolognese-0.10.2 spec/find_from_format_spec.rb
bolognese-0.10 spec/find_from_format_spec.rb
bolognese-0.9.99 spec/find_from_format_spec.rb
bolognese-0.9.98 spec/find_from_format_spec.rb
bolognese-0.9.97 spec/find_from_format_spec.rb
bolognese-0.9.96 spec/find_from_format_spec.rb
bolognese-0.9.95 spec/find_from_format_spec.rb
bolognese-0.9.94 spec/find_from_format_spec.rb
bolognese-0.9.93 spec/find_from_format_spec.rb
bolognese-0.9.92 spec/find_from_format_spec.rb