Sha256: 5844aa1b0b86847e7c63dc9eaf1c7e972ad0f1040a39cd43650a384a3d9db989

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'

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

  describe '#to_hash' do
    let(:document) { { id: 'test' } }

    before do
      allow(subject).to receive(:document).and_return(document)
    end

    it 'returns the document hash' do
      expect(subject.to_hash).to eq(document)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geo_concerns-0.0.7 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.0.6 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
geo_concerns-0.0.5 spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb