spec/views/spotlight/pages/show.html.erb_spec.rb in blacklight-spotlight-3.1.0 vs spec/views/spotlight/pages/show.html.erb_spec.rb in blacklight-spotlight-3.2.0
- old
+ new
@@ -34,9 +34,10 @@
end
context 'when rendering with layout' do
before do
allow(page).to receive_messages(title: 'Abbott & Costello')
+ allow_any_instance_of(Spotlight::Exhibit).to receive(:searchable?).and_return(true)
stub_template 'shared/_analytics.html.erb' => 'analytics'
stub_template 'shared/_user_util_links.html.erb' => ''
stub_template 'shared/_masthead.html.erb' => ''
render template: 'spotlight/pages/show', layout: 'layouts/spotlight/spotlight'
end