Skip to content

Commit

Permalink
Validate femtosecond xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Twade968 committed Dec 1, 2022
1 parent 780a907 commit 9bdf0f4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
expect(page).to have_content "marked as draft"
femtosecond_work = Work.last
expect(femtosecond_work.title).to eq title

# Ensure the datacite record produced validates against our local copy of the datacite schema.
# This will allow us to evolve our local datacite standards and test our records against them.
datacite = PDCSerialization::Datacite.new_from_work(femtosecond_work)
expect(datacite.valid?).to eq true
end
end
end

0 comments on commit 9bdf0f4

Please sign in to comment.