Sha256: 9b673c7a18f6dea11d0761c04d85bea174f066bd8acb27c63980c7a11867f3d6

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'spec_helper'

describe CatalogController do
  before do
    SolrDocument.use_extension( Blacklight::Solr::Document::Marc )
  end
  describe "endnote" do
    render_views
    it "should render endnote" do
      get :show, params: { id: '86207417', format: 'endnote' }
      expect(response.body).to eq "%0 Generic
%A Finkel, Chaim Jacob. 
%C Yerushalayim : 
%D c1984. 
%I Devir, 
%@ 9650101373 
%T Shodede-yam Yehudiyim : sipurim mafliʼim ha-mevusasim ʻal ʻuvdot hisṭoriyot /\n"
    end
  end

  describe "#librarian_view" do
    it "is successful" do
      get :librarian_view, params: { id: '86207417' }
      expect(response).to be_success
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-marc-7.0.0.rc1 spec/controllers/catalog_controller_spec.rb