spec/views/spotlight/browse/show.html.erb_spec.rb in blacklight-spotlight-0.13.0 vs spec/views/spotlight/browse/show.html.erb_spec.rb in blacklight-spotlight-0.14.0
- old
+ new
@@ -3,11 +3,11 @@
describe 'spotlight/browse/show', type: :view do
let(:search) { FactoryGirl.create(:published_search) }
let(:exhibit) { FactoryGirl.create(:exhibit) }
before :each do
- allow(view).to receive_messages(exhibit_masthead?: true)
+ allow(view).to receive_messages(resource_masthead?: false)
allow(view).to receive_messages(blacklight_config: Blacklight::Configuration.new)
view.blacklight_config.view.gallery = true
allow(search).to receive_messages(documents: double(size: 15))
allow(view).to receive_messages(render_document_index_with_view: '')
stub_template('_results_pagination.html.erb' => '')
@@ -25,10 +25,10 @@
expect(response).to have_selector 'h1', text: search.title
expect(response).to have_selector '.item-count', text: "#{search.documents.size} items"
end
it 'does not have the heading and item count when there is a current search masthead' do
- allow(view).to receive_messages(exhibit_masthead?: false)
+ allow(view).to receive_messages(resource_masthead?: true)
render
expect(response).to_not have_selector 'h1', text: search.title
expect(response).to_not have_selector '.item-count', text: "#{search.documents.size} items"
end