Sha256: ef701b5120a4e7b39ea2f61e2d11cd2a1494c1c2ca2c81a591e48d86a9f3376c

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

require 'spec_helper'

RSpec.describe NewspaperWorks::PlaceOfPublicationPresenterBehavior do
  let(:pop) { 'Marysville, California, United States' }
  let(:request) { double(host: 'example.org') }
  let(:solr_document) do
    SolrDocument.new(id: 'abc123',
                     place_of_publication_label_tesim: [pop])
  end

  describe '#place_of_publication_label' do
    let(:presenter) { Hyrax::NewspaperPagePresenter.new(solr_document, nil, request) }
    it 'returns the value' do
      expect(presenter.place_of_publication_label).to eq [pop]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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