spec/metadata_spec.rb in bolognese-0.3 vs spec/metadata_spec.rb in bolognese-0.4.1

- old
+ new

@@ -2,34 +2,40 @@ describe Bolognese::Metadata, vcr: true do context "find PID provider" do it "crossref" do id = "https://doi.org/10.1371/journal.pone.0000030" - subject = Bolognese::Metadata.new(id) + subject = Bolognese::Metadata.new(id: id) expect(subject.provider).to eq("crossref") end it "crossref doi not url" do id = "10.1371/journal.pone.0000030" - subject = Bolognese::Metadata.new(id) + subject = Bolognese::Metadata.new(id: id) expect(subject.provider).to eq("crossref") end it "datacite" do id = "https://doi.org/10.5438/4K3M-NYVG" - subject = Bolognese::Metadata.new(id) + subject = Bolognese::Metadata.new(id: id) expect(subject.provider).to eq("datacite") end it "datacite doi http" do id = "http://doi.org/10.5438/4K3M-NYVG" - subject = Bolognese::Metadata.new(id) + subject = Bolognese::Metadata.new(id: id) expect(subject.provider).to eq("datacite") end it "orcid" do id = "http://orcid.org/0000-0002-0159-2197" - subject = Bolognese::Metadata.new(id) + subject = Bolognese::Metadata.new(id: id) expect(subject.provider).to eq("orcid") + end + + it "schema_org" do + id = "https://blog.datacite.org/eating-your-own-dog-food" + subject = Bolognese::Metadata.new(id: id) + expect(subject.provider).to eq("schema_org") end end end