Sha256: 5897768cc9afb913d117e4f1d09188d246d5fcd7b1f45c1c5979d7674ffc8722

Contents?: true

Size: 529 Bytes

Versions: 21

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

# spec for sidebar partial in catalog show view

RSpec.describe "/catalog/_search_header.html.erb" do
  it "renders the default search header partials" do
    stub_template "_did_you_mean.html.erb" => "did_you_mean"
    stub_template "_sort_and_per_page.html.erb" => "sort_and_per_page"
    allow(view).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
    render
    expect(rendered).to match /did_you_mean/
    expect(rendered).to match /sort_and_per_page/
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
blacklight-8.0.0.beta1 spec/views/catalog/_search_header.erb_spec.rb