Skip to content

Commit

Permalink
Appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Dec 11, 2023
1 parent b4e662d commit df07508
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions spec/models/doi/related_doi_indexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require "rails_helper"

RSpec.describe Doi::Indexer::RelatedDoiIndexer do

describe "related_dois with different input" do
let(:good_related_identifier) do
{
Expand Down Expand Up @@ -40,13 +39,13 @@
it "exclude DOIs with if a required key is missing" do
expect(described_class.new(
good_related_identifier.except("relatedIdentifier")
).related_dois).to eq( [])
).related_dois).to eq([])
expect(described_class.new(
good_related_identifier.except("relatedIdentifierType")
).related_dois).to eq( [])
).related_dois).to eq([])
expect(described_class.new(
good_related_identifier.except("relationType")
).related_dois).to eq( [])
).related_dois).to eq([])
end
end

Expand Down Expand Up @@ -92,24 +91,24 @@
{
"10.1234/5678" => [
{
"relatedIdentifier"=> "10.1234/5678",
"relatedIdentifierType"=> "DOI",
"relationType"=> "IsPartOf",
"resourceTypeGeneral"=> "Dataset",
"relatedIdentifier" => "10.1234/5678",
"relatedIdentifierType" => "DOI",
"relationType" => "IsPartOf",
"resourceTypeGeneral" => "Dataset",
}
],
"10.1234/9999" => [
{
"relatedIdentifier"=> "10.1234/9999",
"relatedIdentifierType"=> "DOI",
"relationType"=> "HasVersion",
"resourceTypeGeneral"=> "Text",
"relatedIdentifier" => "10.1234/9999",
"relatedIdentifierType" => "DOI",
"relationType" => "HasVersion",
"resourceTypeGeneral" => "Text",
},
{
"relatedIdentifier"=> "10.1234/9999",
"relatedIdentifierType"=> "DOI",
"relationType"=> "References",
"resourceTypeGeneral"=> "Text",
"relatedIdentifier" => "10.1234/9999",
"relatedIdentifierType" => "DOI",
"relationType" => "References",
"resourceTypeGeneral" => "Text",
}
],
}
Expand Down

0 comments on commit df07508

Please sign in to comment.