Sha256: d1b4217d4d84dcf35b6f788ddaaf914c4eb8c3e707204385db63a57f875edc72

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'
RSpec.describe SolrDocument do
  let(:solr_doc) { described_class.new(id: 'foo', file_set_ids_ssim: ['bar']) }

  describe 'file_set_ids' do
    it 'responds to #file_set_ids' do
      expect(solr_doc).to respond_to(:file_set_ids)
    end

    it 'returns the correct value' do
      expect(solr_doc.file_set_ids).to eq(['bar'])
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
iiif_print-1.1.0 spec/models/solr_document_spec.rb
iiif_print-1.0.0 spec/models/solr_document_spec.rb
newspaper_works-1.0.1 spec/models/solr_document_spec.rb
newspaper_works-1.0.0 spec/models/solr_document_spec.rb
newspaper_works-0.1.0 spec/models/solr_document_spec.rb