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

Version Path
blacklight-spotlight-0.19.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.18.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.17.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.17.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.16.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.15.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.14.2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.14.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.14.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.13.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.12.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.12.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.11.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.10.3 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.10.2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.10.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.10.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.9.2 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.9.1 spec/views/spotlight/catalog/edit.html.erb_spec.rb
blacklight-spotlight-0.9.0 spec/views/spotlight/catalog/edit.html.erb_spec.rb