Sha256: f17f55326381acbdc35ffb5f319eb63a831e3870a9f9b8d0141e8be7e2ee5572

Contents?: true

Size: 787 Bytes

Versions: 14

Compression:

Stored size: 787 Bytes

Contents

require 'spec_helper'

describe "catalog/_sort_and_per_page" do

  let :blacklight_config do
    Blacklight::Configuration.new
  end

  before do
    view.stub(blacklight_config: blacklight_config)
  end

  it "should render the pagination, sort, per page and view type controls" do
    stub_template "catalog/_paginate_compact.html.erb" => "paginate_compact"
    stub_template "catalog/_sort_widget.html.erb" => "sort_widget"
    stub_template "catalog/_per_page_widget.html.erb" => "per_page_widget"
    stub_template "catalog/_view_type_group.html.erb" => "view_type_group"
    render
    expect(rendered).to match /paginate_compact/
    expect(rendered).to match /sort_widget/
    expect(rendered).to match /per_page_widget/
    expect(rendered).to match /view_type_group/
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
blacklight-5.5.1 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.5.0 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.4.0 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.4.0.rc1 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.3.0 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.0.3 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.1.1 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.2.0 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.1.0 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.0.2 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.0.1 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.0.0 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.0.0.pre4 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
blacklight-5.0.0.pre3 spec/views/catalog/_sort_and_per_page.html.erb_spec.rb