From e2baf31ada61fd6719fe97bc1279bccfc13d0e8c Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Fri, 11 Sep 2020 12:20:46 -0400 Subject: [PATCH] make tests pass --- .../mapper/data_mapper_anthro_spec.rb | 2 +- .../files/datahashes/anthro/osteology1.json | 14 +++++++------- .../release_6_1/anthro/anthro_4_1_0-osteology.json | 2 +- spec/fixtures/files/xml/anthro/osteology1.xml | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/spec/collectionspace/mapper/data_mapper_anthro_spec.rb b/spec/collectionspace/mapper/data_mapper_anthro_spec.rb index c6f29ad5..8cb0e522 100644 --- a/spec/collectionspace/mapper/data_mapper_anthro_spec.rb +++ b/spec/collectionspace/mapper/data_mapper_anthro_spec.rb @@ -51,7 +51,7 @@ @osteologymapper = get_json_record_mapper(path: 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4_1_0-osteology.json') @handler = DataHandler.new(record_mapper: @osteologymapper, cache: @cache, client: @client, config: @config) end - context 'record 2' do + context 'record 1' do before(:all) do @datahash = get_datahash(path: 'spec/fixtures/files/datahashes/anthro/osteology1.json') @prepper = DataPrepper.new(@datahash, @handler) diff --git a/spec/fixtures/files/datahashes/anthro/osteology1.json b/spec/fixtures/files/datahashes/anthro/osteology1.json index 4cbcaead..a21f7535 100644 --- a/spec/fixtures/files/datahashes/anthro/osteology1.json +++ b/spec/fixtures/files/datahashes/anthro/osteology1.json @@ -34,12 +34,12 @@ "cranialDeformationCategory": "other (describe);tabular;circumferential", "cranialDeformationNote": "of cranial deformation present", "trepanationPresent": "false", - "trepanationLocation": "bone and side^^^^Gang Gang", - "trepanationDimensionMax": "50^^^^90", - "trepanationDimensionMin": "^^60^^100", - "trepanationTechnique": "grooving^^^^grooving", - "trepanationHealing": "possible healing^^healing^^definite evidence for healing", - "trepanationCertainty": "possible trepanation^^clear evidence of trepanation^^", - "trepanationNote": "crazzy^^why why^^window", + "trepanationLocation": "bone and side;;Gang Gang", + "trepanationDimensionMax": "50;;90", + "trepanationDimensionMin": ";60;100", + "trepanationTechnique": "grooving;;grooving", + "trepanationHealing": "possible healing;no healing;definite evidence for healing", + "trepanationCertainty": "possible trepanation;clear evidence of trepanation", + "trepanationNote": "crazzy;why why;window", "trepanationGeneralNote": "earth long" } diff --git a/spec/fixtures/files/mappers/release_6_1/anthro/anthro_4_1_0-osteology.json b/spec/fixtures/files/mappers/release_6_1/anthro/anthro_4_1_0-osteology.json index 5cc9482d..02ad9502 100644 --- a/spec/fixtures/files/mappers/release_6_1/anthro/anthro_4_1_0-osteology.json +++ b/spec/fixtures/files/mappers/release_6_1/anthro/anthro_4_1_0-osteology.json @@ -8,7 +8,7 @@ "profile_basename": "anthro", "ns_uri": { "osteology_common": "http://collectionspace.org/services/osteology", - "osteology_anthropology": null + "osteology_anthropology": "http://collectionspace.org/services/osteology/domain/anthropology" }, "identifier_field": "InventoryID" }, diff --git a/spec/fixtures/files/xml/anthro/osteology1.xml b/spec/fixtures/files/xml/anthro/osteology1.xml index c1ee1c6d..7264fbb9 100644 --- a/spec/fixtures/files/xml/anthro/osteology1.xml +++ b/spec/fixtures/files/xml/anthro/osteology1.xml @@ -20,8 +20,7 @@ urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(tabular)'tabular' urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(circumferential)'circumferential' - taphonomic alteration - + taphonomic alteration modification suffixing note bony pathology