Sha256: 9188a19a168d21b3379441ec1ef82fe385a4eebd2c2adf7e6221a52331041f4b
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true 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 %i(agents aggregations concepts europeanaAggregation places providedCHOs proxies timespans).each do |relation| expect(subject.send(relation)).to eq([]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
europeana-blacklight-1.3.1 | spec/models/europeana/blacklight/document/relations_spec.rb |
europeana-blacklight-1.3.0 | spec/models/europeana/blacklight/document/relations_spec.rb |