Sha256: 6d288cc062a58c23513ca255dd52f5f3b767f168658cdab6c1f1f49ef142f911
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' RSpec.describe NewspaperWorks::TitleInfoPresenter do let(:solr_document) { SolrDocument.new(attributes) } let(:attributes) do { 'publication_id_ssi' => 'foo', 'publication_title_ssi' => 'bar' } end subject { Hyrax::NewspaperPagePresenter.new(solr_document, nil) } describe '#publication_id' do it 'returns the correct value' do expect(subject.publication_id).to eq 'foo' end end describe '#publication_title' do it 'returns the correct value' do expect(subject.publication_title).to eq 'bar' end end end
Version data entries
3 entries across 3 versions & 1 rubygems