Sha256: 70f4b788b84e1eca79c31933c58a7900d76829b8bc8f3a411eb7d8a3099a56ea
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' RSpec.describe IiifPrint::IiifManifestPresenterBehavior do let(:attributes) do { "id" => "abc123", "title_tesim" => ['Page the first'], "description_tesim" => ['A book or something'], "creator_tesim" => ['Arthur McAuthor'] } end let(:solr_document) { SolrDocument.new(attributes) } let(:presenter) { Hyrax::IiifManifestPresenter.new(solr_document) } let(:test_request) { ActionDispatch::TestRequest.new({}) } describe '#search_service' do it 'returns the correct URL for the IIIF Search service' do expect(presenter.search_service).to include("#{solr_document.id}/iiif_search") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iiif_print-1.0.0 | spec/presenters/iiif_print/iiif_manifest_presenter_behavior_spec.rb |