Sha256: 7b2095d2e32eef4f8e7a56fae6c62f767497f7096770adb128fef001a21e9eca
Contents?: true
Size: 622 Bytes
Versions: 3
Compression:
Stored size: 622 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 'should render a document div' do expect(rendered).to have_css "#document.document" end end
Version data entries
3 entries across 3 versions & 1 rubygems