Sha256: 2eeedcca77db8ebc6ddbf68f588ebe78f2ab239b503033feaf8068c7adaec475
Contents?: true
Size: 552 Bytes
Versions: 6
Compression:
Stored size: 552 Bytes
Contents
require 'spec_helper' describe GeoWorks::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 'fails 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
6 entries across 6 versions & 1 rubygems