Sha256: 6655f62be6146b22c1ee01e1d8b89f0fd136a2658022185a5cc4a80b22d8a8e8
Contents?: true
Size: 631 Bytes
Versions: 10
Compression:
Stored size: 631 Bytes
Contents
# frozen_string_literal: true describe 'spotlight/browse/index', type: :view do let(:search) { FactoryBot.create(:search) } let(:another_search) { FactoryBot.create(:search) } before { allow(view).to receive(:current_exhibit).and_return(search.exhibit) } it 'has a title' do render expect(response).to have_selector 'h1', text: 'Browse' 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
10 entries across 10 versions & 1 rubygems