Sha256: 7a18e0562afd5e62a19f26f91f126a53843df7b0e6e627ea1078999b728cabc7

Contents?: true

Size: 551 Bytes

Versions: 28

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'

describe 'spotlight/browse/index', type: :view do
  let(:search) { FactoryGirl.create(:search) }
  let(:another_search) { FactoryGirl.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

28 entries across 28 versions & 1 rubygems

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