diff --git a/spec/cocina/models/mapping/descriptive/mods/abstract_spec.rb b/spec/cocina/models/mapping/descriptive/mods/abstract_spec.rb
index c75342ff..f517755d 100644
--- a/spec/cocina/models/mapping/descriptive/mods/abstract_spec.rb
+++ b/spec/cocina/models/mapping/descriptive/mods/abstract_spec.rb
@@ -77,7 +77,7 @@
end
end
- describe 'Abstract with type "summary"' do
+ describe 'Abstract with type' do
it_behaves_like 'MODS cocina mapping' do
let(:mods) do
<<~XML
@@ -98,54 +98,6 @@
end
end
- describe 'Abstract with type "Summary"' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- This is a summary.
- XML
- end
-
- let(:roundtrip_mods) do
- <<~XML
- This is a summary.
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'This is a summary.',
- type: 'summary'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with type "scope and content"' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- This is a scope and content note.
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'This is a scope and content note.',
- type: 'scope and content'
- }
- ]
- }
- end
- end
- end
-
describe 'Abstract with display label and type' do
it_behaves_like 'MODS cocina mapping' do
let(:mods) do
@@ -168,7 +120,7 @@
end
end
- describe 'Abstract with displayLabel "Summary" and no type' do
+ describe 'Abstract with displayLabel and no type' do
it_behaves_like 'MODS cocina mapping' do
let(:mods) do
<<~XML
@@ -189,189 +141,6 @@
end
end
- describe 'Abstract with displayLabel "Subject" and no type' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Subject
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Subject',
- displayLabel: 'Subject'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with displayLabel "Review" and no type' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Review
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Review',
- displayLabel: 'Review'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with displayLabel "Scope and content" and no type' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Scope and content
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Scope and content',
- displayLabel: 'Scope and content'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with scope and content displayLabel and no type, nonstandard capitalization' do
- # normalize this displayLabel to be lowercase after first letter
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Scope and content
- XML
- end
-
- let(:roundtrip_mods) do
- <<~XML
- Scope and content
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Scope and content',
- displayLabel: 'Scope and content'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with displayLabel "Abstract" and no type' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Abstract
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Abstract',
- displayLabel: 'Abstract'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with displayLabel "Content advice" and no type' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Content advice
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Content advice',
- displayLabel: 'Content advice'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with content advice displayLabel and no type, nonstandard capitalization' do
- # normalize this displayLabel to be lowercase after first letter
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Content advice
- XML
- end
-
- let(:roundtrip_mods) do
- <<~XML
- Content advice
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'Content advice',
- displayLabel: 'Content advice'
- }
- ]
- }
- end
- end
- end
-
- describe 'Abstract with other displayLabel, capitalization retained' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- A summary.
- XML
- end
-
- let(:cocina) do
- {
- note: [
- {
- value: 'A summary.',
- type: 'abstract',
- displayLabel: 'Summary from Barnes Catalogue of Works'
- }
- ]
- }
- end
- end
- end
-
describe 'Link to external value only' do
it_behaves_like 'MODS cocina mapping' do
let(:mods) do