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