Sha256: c0a53acad1b5ec70503c3299336bcc081a2b19d76022251b4b07bcf7ef22b50b
Contents?: true
Size: 479 Bytes
Versions: 18
Compression:
Stored size: 479 Bytes
Contents
RSpec.describe Europeana::Blacklight::Document::Relations do subject { Europeana::Blacklight::Document.new(source) } context 'when relation is missing from source' do let(:source) { { id: '/abc/123', title: ['test'] } } it 'returns an empty array' do [:agents, :aggregations, :concepts, :europeanaAggregation, :places, :providedCHOs, :proxies, :timespans].each do |relation| expect(subject.send(relation)).to eq([]) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems