Sha256: 35ac74991bc580f13e9ad7aef3cbf6d879427ad7518ff055779b811112fc0570

Contents?: true

Size: 618 Bytes

Versions: 40

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

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

40 entries across 40 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.3.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.2.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.1.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.3 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/views/spotlight/catalog/edit.html.erb_spec.rb