Sha256: 7fb147d7f942468cd2773afd060963a062840ba74a0e97ef5a886289d1096fe9
Contents?: true
Size: 662 Bytes
Versions: 5
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true RSpec.describe "catalog/_previous_next_doc.html.erb" do it "without next or previous does not render content" do assign(:search_context, {}) render expect(rendered).not_to have_selector ".pagination-search-widgets" end it "with next or previous does render content" do assign(:search_context, next: 'foo', prev: 'bar') allow(view).to receive(:link_to_previous_document).and_return('') allow(view).to receive(:item_page_entry_info).and_return('') allow(view).to receive(:link_to_next_document).and_return('') render expect(rendered).to have_selector ".pagination-search-widgets" end end
Version data entries
5 entries across 5 versions & 1 rubygems