Sha256: 9452f15ca4d248286ca66720ccec0fe7bba474244e502effcdc36d37d064d0d4

Contents?: true

Size: 533 Bytes

Versions: 16

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe Geoblacklight::SolrDocument::Inspection do
  let(:subject) { SolrDocument.new }
  describe '#inspectable?' do
    it 'returns true for wms viewer protocol' do
      expect(subject).to receive(:viewer_protocol).and_return('wms')
      expect(subject.inspectable?).to be_truthy
    end

    it 'returns false for iiif viewer protocol' do
      expect(subject).to receive(:viewer_protocol).and_return('iiif')
      expect(subject.inspectable?).to be_falsy
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.8.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.7.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.6.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.5.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-4.0.0.pre.alpha spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.4.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.3.1 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.3.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.2.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.1.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.0.1 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
geoblacklight-3.0.0 spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb