Sha256: b1f531fc95cd4b38c7be75ccca906c90532bc4add02322892ed19bbefa1ff2b5

Contents?: true

Size: 556 Bytes

Versions: 8

Compression:

Stored size: 556 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::Discovery::GeoblacklightDocument do
  subject { described_class.new }

  describe '#to_hash' do
    before do
      allow(subject).to receive(:rights).and_return('Public')
      allow(subject).to receive(:document_hash).and_return(document_hash)
    end
    context 'incomplete data' do
      let(:document_hash) { Hash.new }

      it 'failed to validate the document hash' do
        expect(subject.to_hash).to include(:error)
        expect(subject.to_hash[:error].size).to eq(6)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.3.3 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.3.2 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.3.1 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.3.0 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.2.0 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.1.1 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.1.0 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb