Sha256: e88d0268eab9bd67f5a7432b0d786685664aa12bc7c59cf5b66601ada45caf07

Contents?: true

Size: 784 Bytes

Versions: 13

Compression:

Stored size: 784 Bytes

Contents

require 'spec_helper'

describe 'gdor indexing integration test', :vcr do
  let :exhibit do
    double(solr_data: {}, blacklight_config: Blacklight::Configuration.new)
  end

  subject do
    r = Spotlight::Resources::Purl.new(url: 'https://purl.stanford.edu/xf680rd3068')
    allow(r).to receive(:to_global_id).and_return('x')
    allow(r).to receive(:exhibit).and_return(exhibit)
    r.to_solr.first
  end

  it 'has a doc id' do
    expect(subject[:id]).to eq 'xf680rd3068'
  end

  it 'has the gdor data' do
    expect(subject).to include :collection, :modsxml, :url_fulltext
  end

  it 'has spotlight data' do
    expect(subject).to include :spotlight_resource_id_ssim
  end

  it 'has exhibit-specific indexing' do
    expect(subject).to include 'full_image_url_ssm'
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spotlight-dor-resources-0.4.0 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.3.3 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.3.2 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.3.1 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.3.0 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.2.3 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.2.2 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.2.1 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.2.0 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.1.0 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.0.6 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.0.5 spec/integration/gdor_integration_spec.rb
spotlight-dor-resources-0.0.4 spec/integration/gdor_integration_spec.rb