diff --git a/spec/cocina/models/mapping/descriptive/mods/access_condition_spec.rb b/spec/cocina/models/mapping/descriptive/mods/access_condition_spec.rb
index aa7092e0..eac30db0 100644
--- a/spec/cocina/models/mapping/descriptive/mods/access_condition_spec.rb
+++ b/spec/cocina/models/mapping/descriptive/mods/access_condition_spec.rb
@@ -3,7 +3,7 @@
require 'spec_helper'
RSpec.describe 'MODS accessCondition <--> cocina mappings' do
- describe 'Restriction on access type' do
+ describe 'Access condition with type' do
it_behaves_like 'MODS cocina mapping' do
let(:mods) do
<<~XML
@@ -26,121 +26,11 @@
end
end
- describe 'Restriction on access type without spaces' do
+ describe 'Access condition without type' do
it_behaves_like 'MODS cocina mapping' do
let(:mods) do
<<~XML
- Available to Stanford researchers only.
- XML
- end
-
- let(:roundtrip_mods) do
- <<~XML
- Available to Stanford researchers only.
- XML
- end
-
- let(:cocina) do
- {
- access: {
- note: [
- {
- value: 'Available to Stanford researchers only.',
- type: 'access restriction'
- }
- ]
- }
- }
- end
- end
- end
-
- describe 'Restrictions on access type without spaces' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- Available to Stanford researchers only.
- XML
- end
-
- let(:roundtrip_mods) do
- <<~XML
- Available to Stanford researchers only.
- XML
- end
-
- let(:cocina) do
- {
- access: {
- note: [
- {
- value: 'Available to Stanford researchers only.',
- type: 'access restriction'
- }
- ]
- }
- }
- end
- end
- end
-
- describe 'Restriction on use and reproduction type' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- User agrees that, where applicable, blah blah.
- XML
- end
-
- let(:cocina) do
- {
- access: {
- note: [
- {
- value: 'User agrees that, where applicable, blah blah.',
- type: 'use and reproduction'
- }
- ]
- }
- }
- end
- end
- end
-
- describe 'Restriction on use and reproduction type without spaces' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- User agrees that, where applicable, blah blah.
- XML
- end
-
- let(:roundtrip_mods) do
- <<~XML
- User agrees that, where applicable, blah blah.
- XML
- end
-
- let(:cocina) do
- {
- access: {
- note: [
- {
- value: 'User agrees that, where applicable, blah blah.',
- type: 'use and reproduction'
- }
- ]
- }
- }
- end
- end
- end
-
- describe 'License' do
- it_behaves_like 'MODS cocina mapping' do
- let(:mods) do
- <<~XML
- CC by: CC BY Attribution
+ Available to Stanford researchers only.
XML
end
@@ -149,8 +39,7 @@
access: {
note: [
{
- value: 'CC by: CC BY Attribution',
- type: 'license'
+ value: 'Available to Stanford researchers only.'
}
]
}