From 9bdf0f4a8e74ab2f91520e70d2ae60ba36985244 Mon Sep 17 00:00:00 2001 From: Tyler Wade Date: Thu, 1 Dec 2022 14:00:34 -0500 Subject: [PATCH] Validate femtosecond xml --- .../data_migration/femtosecond_form_submission_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/system/data_migration/femtosecond_form_submission_spec.rb b/spec/system/data_migration/femtosecond_form_submission_spec.rb index 42261e750..7363abb50 100644 --- a/spec/system/data_migration/femtosecond_form_submission_spec.rb +++ b/spec/system/data_migration/femtosecond_form_submission_spec.rb @@ -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