From 3558acf0938361970b82a3d622d752bdccf1a012 Mon Sep 17 00:00:00 2001 From: Chris Colvard Date: Mon, 2 May 2022 11:37:20 -0400 Subject: [PATCH] Add failing test for annotation id Co-authored-by: Mason Ballengee --- spec/lib/iiif_manifest/v3/manifest_factory_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/lib/iiif_manifest/v3/manifest_factory_spec.rb b/spec/lib/iiif_manifest/v3/manifest_factory_spec.rb index 8bb1fd1..5ae6a0f 100644 --- a/spec/lib/iiif_manifest/v3/manifest_factory_spec.rb +++ b/spec/lib/iiif_manifest/v3/manifest_factory_spec.rb @@ -142,6 +142,7 @@ def display_content expect(result['items'].first['items'].first['id']).not_to be_empty expect(result['items'].first['items'].first['items'].length).to eq 1 expect(result['items'].first['items'].first['items'].first['type']).to eq 'Annotation' + expect(result['items'].first['items'].first['items'].first['id']).not_to be_empty expect(result['items'].first['items'].first['items'].first['motivation']).to eq 'painting' expect(result['items'].first['items'].first['items'].first['target']).to eq result['items'].first['id'] expect(result['items'].first['items'].first['items'].first['body']['type']).to eq 'Image' @@ -185,6 +186,7 @@ def display_content expect(result['items'].first['items'].first['id']).not_to be_empty expect(result['items'].first['items'].first['items'].length).to eq 1 expect(result['items'].first['items'].first['items'].first['type']).to eq 'Annotation' + expect(result['items'].first['items'].first['items'].first['id']).not_to be_empty expect(result['items'].first['items'].first['items'].first['motivation']).to eq 'painting' expect(result['items'].first['items'].first['items'].first['target']).to eq result['items'].first['id'] expect(result['items'].first['items'].first['items'].first['body']['type']).to eq 'Sound'