Skip to content

Commit

Permalink
Add related_item to default factory
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Apr 20, 2021
1 parent 4538661 commit cddf833
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/factories/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,22 @@
},
]
end
related_items do
[
{
"firstPage" => "249",
"lastPage" => "264",
"publicationYear" => "2018",
"relatedItemIdentifier" =>
{ "__content__" => "10.1016/j.physletb.2017.11.044",
"relatedItemIdentifierType" => "DOI" },
"relatedItemType" => "Journal",
"relationType" => "IsPublishedIn",
"titles" => { "title" => "Physics letters / B" },
"volume" => "776"
}
]
end
schema_version { "http://datacite.org/schema/kernel-4" }
source { "test" }
type { "DataciteDoi" }
Expand Down

0 comments on commit cddf833

Please sign in to comment.