Sha256: 46013323175f92bd9743f2cedbdf455ac0e07fcc8f9c1c4d27125ed2fcc62eee

Contents?: true

Size: 557 Bytes

Versions: 18

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

describe 'spotlight/browse/index', type: :view do
  let(:search) { FactoryBot.create(:search) }
  let(:another_search) { FactoryBot.create(:search) }

  it 'has a title' do
    render
    expect(response).to have_selector 'h1', text: 'Browse Exhibit'
  end

  it 'renders the collection of searches' do
    assign :searches, [search, another_search]
    stub_template 'spotlight/browse/_search.html.erb' => '<%= search.id %> <br/>'
    render
    expect(response).to have_content "#{search.id} #{another_search.id}"
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.13.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.12.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.12.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.11.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.10.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.9.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.8.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.7.2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.7.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.7.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.6.1.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.6.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.6.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.5.2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.5.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-2.5.0 spec/views/spotlight/browse/index.html.erb_spec.rb