spec/readers/codemeta_reader_spec.rb in bolognese-0.9.95 vs spec/readers/codemeta_reader_spec.rb in bolognese-0.9.96
- old
+ new
@@ -27,25 +27,9 @@
expect(subject.date_published).to eq("2017-02-24")
expect(subject.date_modified).to eq("2017-02-24")
expect(subject.publisher).to eq("DataCite")
end
- it "no codemeta.json" do
- input = "https://github.com/datacite/homepage"
- subject = Bolognese::Metadata.new(input: input)
- expect(subject.id).to eq("https://github.com/datacite/homepage")
- expect(subject.exists?).to be false
- expect(subject.state).to eq("not_found")
- end
-
- it "not found error" do
- input = "https://github.com/datacite/x"
- subject = Bolognese::Metadata.new(input: input)
- expect(subject.id).to eq("https://github.com/datacite/x")
- expect(subject.exists?).to be false
- expect(subject.state).to eq("not_found")
- end
-
it "rdataone" do
input = fixture_path + 'codemeta.json'
subject = Bolognese::Metadata.new(input: input)
expect(subject.id).to eq("https://doi.org/10.5063/f1m61h5x")
expect(subject.b_url).to eq("https://github.com/DataONEorg/rdataone")