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

Version Path
newspaper_works-1.0.1 spec/presenters/newspaper_works/title_info_presenter_spec.rb
newspaper_works-1.0.0 spec/presenters/newspaper_works/title_info_presenter_spec.rb
newspaper_works-0.1.0 spec/presenters/newspaper_works/title_info_presenter_spec.rb