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