Sha256: 51ca36734d3246952ad420d798eb152db857e9c9203d2ec9dd1b8540637852e1
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
require 'spec_helper' describe GeoConcerns::Discovery::GeoblacklightDocument do subject { described_class.new } describe '#to_hash' do before do 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
3 entries across 3 versions & 1 rubygems