Sha256: d431025d4903fb26e782dad0583bdee57c905fd0b16525cde6e3dcd7bfcc7811
Contents?: true
Size: 610 Bytes
Versions: 28
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' describe 'spotlight/catalog/edit.html.erb', type: :view do let(:blacklight_config) { Blacklight::Configuration.new } let(:document) { stub_model(::SolrDocument) } before do allow(view).to receive_messages(blacklight_config: blacklight_config) allow(view).to receive_messages(current_exhibit: stub_model(Spotlight::Exhibit)) assign(:document, document) allow(view).to receive(:document_counter) allow(view).to receive(:render_document_partials) render end it 'renders a document div' do expect(rendered).to have_css '#document.document' end end
Version data entries
28 entries across 28 versions & 1 rubygems