Sha256: cdf245ea24a80ed258c74b67e3dda109b80294fd62553fb92f04ea793b3b0105

Contents?: true

Size: 588 Bytes

Versions: 47

Compression:

Stored size: 588 Bytes

Contents

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

47 entries across 47 versions & 1 rubygems

Version Path
blacklight-spotlight-0.33.3 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.33.2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.33.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.33.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.32.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.31.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.30.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.29.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.29.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.28.3 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.28.2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.28.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.28.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.27.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.26.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.26.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.25.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.24.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.23.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.22.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb