spec/readers/codemeta_reader_spec.rb in bolognese-1.6.8 vs spec/readers/codemeta_reader_spec.rb in bolognese-1.6.9
- old
+ new
@@ -35,11 +35,11 @@
expect(subject.subjects).to eq([{"subject"=>"faraday"}, {"subject"=>"excon"}, {"subject"=>"net/http"}])
expect(subject.dates).to eq([{"date"=>"2017-02-24", "dateType"=>"Issued"}, {"date"=>"2015-11-28", "dateType"=>"Created"}, {"date"=>"2017-02-24", "dateType"=>"Updated"}])
expect(subject.publication_year).to eq("2017")
expect(subject.publisher).to eq("DataCite")
expect(subject.rights_list).to eq([{"rights"=>"MIT License",
- "rightsIdentifier"=>"MIT",
+ "rightsIdentifier"=>"mit",
"rightsIdentifierScheme"=>"SPDX",
"rightsUri"=>"https://opensource.org/licenses/MIT",
"schemeUri"=>"https://spdx.org/licenses/"}])
end
@@ -76,11 +76,11 @@
expect(subject.version_info).to eq("2.0.0")
expect(subject.dates).to eq([{"date"=>"2016-05-27", "dateType"=>"Issued"}, {"date"=>"2016-05-27", "dateType"=>"Created"}, {"date"=>"2016-05-27", "dateType"=>"Updated"}])
expect(subject.publication_year).to eq("2016")
expect(subject.publisher).to eq("https://cran.r-project.org")
expect(subject.rights_list).to eq([{"rights"=>"Apache License 2.0",
- "rightsIdentifier"=>"Apache-2.0",
+ "rightsIdentifier"=>"apache-2.0",
"rightsIdentifierScheme"=>"SPDX",
"rightsUri"=>"http://www.apache.org/licenses/LICENSE-2.0",
"schemeUri"=>"https://spdx.org/licenses/"}])
end
@@ -105,11 +105,11 @@
expect(subject.subjects).to eq([{"subject"=>"faraday"}, {"subject"=>"excon"}, {"subject"=>"net/http"}])
expect(subject.dates).to eq([{"date"=>"2017-02-24", "dateType"=>"Issued"}, {"date"=>"2015-11-28", "dateType"=>"Created"}, {"date"=>"2017-02-24", "dateType"=>"Updated"}])
expect(subject.publication_year).to eq("2017")
expect(subject.publisher).to eq("DataCite")
expect(subject.rights_list).to eq([{"rights"=>"MIT License",
- "rightsIdentifier"=>"MIT",
+ "rightsIdentifier"=>"mit",
"rightsIdentifierScheme"=>"SPDX",
"rightsUri"=>"https://opensource.org/licenses/MIT",
"schemeUri"=>"https://spdx.org/licenses/"}])
end
@@ -127,10 +127,10 @@
expect(subject.subjects).to eq([{"subject"=>"doi"}, {"subject"=>"software"}, {"subject"=>"codemeta"}])
expect(subject.dates).to eq([{"date"=>"2018-05-17", "dateType"=>"Issued"}, {"date"=>"2018-03-09", "dateType"=>"Created"}, {"date"=>"2018-05-17", "dateType"=>"Updated"}])
expect(subject.publication_year).to eq("2018")
expect(subject.publisher).to eq("DataCite")
expect(subject.rights_list).to eq([{"rights"=>"MIT License",
- "rightsIdentifier"=>"MIT",
+ "rightsIdentifier"=>"mit",
"rightsIdentifierScheme"=>"SPDX",
"rightsUri"=>"https://opensource.org/licenses/MIT",
"schemeUri"=>"https://spdx.org/licenses/"}])
end
end