Sha256: c5733bb738a87dc7776b65aaf1a72273054ce1f13bcc79a150de7f9d6b416b39

Contents?: true

Size: 810 Bytes

Versions: 47

Compression:

Stored size: 810 Bytes

Contents

describe 'spotlight/browse/_sort_and_per_page', type: :view do
  let :blacklight_config do
    Blacklight::Configuration.new
  end

  before do
    allow(view).to receive_messages(blacklight_config: blacklight_config)
  end

  it 'renders the pagination, sort, per page and view type controls' do
    stub_template '_paginate_compact.html.erb' => "paginate_compact\n"
    stub_template '_sort_widget.html.erb' => "sort_widget\n"
    stub_template '_per_page_widget.html.erb' => "per_page_widget\n"
    stub_template '_view_type_group.html.erb' => "view_type_group\n"
    render
    expect(rendered).to_not have_content 'paginate_compact'
    expect(rendered).to have_content 'sort_widget'
    expect(rendered).to have_content 'per_page_widget'
    expect(rendered).to have_content 'view_type_group'
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
blacklight-spotlight-0.33.3 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.33.2 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.33.1 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.33.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.32.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.31.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.30.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.29.1 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.29.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.28.3 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.28.2 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.28.1 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.28.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.27.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.26.1 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.26.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.25.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.24.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.23.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
blacklight-spotlight-0.22.0 spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb