diff --git a/spec/factories/collections.rb b/spec/factories/collections.rb index 37e4af27..9058ece1 100644 --- a/spec/factories/collections.rb +++ b/spec/factories/collections.rb @@ -109,7 +109,8 @@ with_solr_document { false } end sequence(:title) { |n| ["Collection Title #{n}"] } - sequence(:ead) { |n| ["EAD id #{n}"] } + sequence(:call_number) { |n| ["Call Number #{n}"] } + sequence(:finding_aid) { |n| ["Finding Aid #{n}"] } after(:build) do |collection, evaluator| collection.apply_depositor_metadata(evaluator.user.user_key) @@ -186,7 +187,8 @@ end sequence(:title) { |n| ["Typeless Collection Title #{n}"] } - sequence(:ead) { |n| ["EAD #{n}"] } + sequence(:call_number) { |n| ["Call Number #{n}"] } + sequence(:finding_aid) { |n| ["Finding Aid #{n}"] } after(:build) do |collection, evaluator| collection.apply_depositor_metadata(evaluator.user.user_key) diff --git a/spec/models/collection_spec.rb b/spec/models/collection_spec.rb index 1ad3baee..7bee0258 100644 --- a/spec/models/collection_spec.rb +++ b/spec/models/collection_spec.rb @@ -8,7 +8,8 @@ let(:work) { collection } end - it "can have an associated EAD" do - expect(collection.ead.first).to start_with "EAD id" + it "has an associated call_number and finding_aid" do + expect(collection.call_number.first).to start_with "Call Number" + expect(collection.finding_aid.first).to start_with "Finding Aid" end end