spec/readers/codemeta_reader_spec.rb in bolognese-0.9.71 vs spec/readers/codemeta_reader_spec.rb in bolognese-0.9.72
- old
+ new
@@ -30,18 +30,20 @@
end
it "no codemeta.json" do
input = "https://github.com/datacite/homepage"
subject = Bolognese::Metadata.new(input: input)
- expect(subject.id).to be_nil
+ 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 be_nil
+ 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)