Sha256: 7ea1bcdd3d430c67f8089c8eb6f293a3b302e1ab2aff4fe4eac0c34e03171c94

Contents?: true

Size: 692 Bytes

Versions: 3

Compression:

Stored size: 692 Bytes

Contents

require 'spec_helper'
require_relative '../newspaper_works/newspaper_core_presenter_spec'

RSpec.describe Hyrax::NewspaperContainerPresenter do
  let(:solr_document) { SolrDocument.new(attributes) }

  let(:attributes) do
    { "extent" => ["1st"],
      "publication_date_start" => ["2017-08-25"],
      "publication_date_end" => ["2017-08-30"] }
  end

  it_behaves_like "a newspaper core presenter"

  subject { described_class.new(double, double) }

  it { is_expected.to delegate_method(:extent).to(:solr_document) }
  it { is_expected.to delegate_method(:publication_date_start).to(:solr_document) }
  it { is_expected.to delegate_method(:publication_date_end).to(:solr_document) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

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