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