Sha256: 4f490af51168f8ee035bc2676168807a6dd2d1f416a5aca7b3e3deb5c103d275

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'

describe "spotlight/browse/index" do
  let(:search) { FactoryGirl.create(:search) }
  let(:another_search) { FactoryGirl.create(:search) }

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

  it "should render 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

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.1.0 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.0.3 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.0.2 spec/views/spotlight/browse/index.html.erb_spec.rb
blacklight-spotlight-0.0.1 spec/views/spotlight/browse/index.html.erb_spec.rb