Sha256: 23703fd07f9cfe18b1850be80ec862bfc5a723470fbe05da5384785833b8e210
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
require 'spec_helper' RSpec.describe 'bookmarks/_endnote.html.erb' do before do allow(controller).to receive(:blacklight_config) .and_return(CatalogController.blacklight_config) assign(:response, response) render end let(:response) do instance_double(Blacklight::Solr::Response, documents: documents) end let(:documents) do [mock_model(Bookmark, document_id: 7, exports_as?: true), mock_model(Bookmark, document_id: 8, exports_as?: true)] end it 'has a link' do expect(rendered).to have_link 'Export to EndNote' end end
Version data entries
5 entries across 5 versions & 1 rubygems