Sha256: 72cffdb8bea3abe500d8b6fe19982ade0f300785da8fd773947d6c1096b1c3c9
Contents?: true
Size: 867 Bytes
Versions: 3
Compression:
Stored size: 867 Bytes
Contents
RSpec.shared_examples "a newspaper core presenter" do let(:solr_document) { SolrDocument.new(attributes) } let(:request) { double(host: 'example.org') } let(:user_key) { 'a_user_key' } let(:core_attributes) do { "alternative_title" => ['There and Back Again'], "issn" => '2049-3630', "lccn" => '2001001114', "oclcnum" => 'ocm00012345', "held_by" => 'Marriott Library' } end let(:ability) { nil } let(:presenter) { described_class.new(solr_document, ability, request) } it { is_expected.to delegate_method(:alternative_title).to(:solr_document) } it { is_expected.to delegate_method(:issn).to(:solr_document) } it { is_expected.to delegate_method(:lccn).to(:solr_document) } it { is_expected.to delegate_method(:oclcnum).to(:solr_document) } it { is_expected.to delegate_method(:held_by).to(:solr_document) } end
Version data entries
3 entries across 3 versions & 1 rubygems