Sha256: e128e92e08a02f251221ff506b1a6e5828dbd0935ddcf978a72c6fbe48e44baa

Contents?: true

Size: 529 Bytes

Versions: 32

Compression:

Stored size: 529 Bytes

Contents

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

32 entries across 32 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.34.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.34.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.33.3 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.33.2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.33.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.33.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.32.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.31.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.30.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.29.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.29.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.28.3 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.28.2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.28.1 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.28.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.27.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.26.1 spec/views/spotlight/browse/index.html.erb_spec.rb