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.6.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.6.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.5.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.5.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.4.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.3.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.2.2 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.2.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.2.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.1.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta8 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta7 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta6 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta5 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta4 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta3 spec/views/catalog/_search_header.erb_spec.rb
blacklight-8.0.0.beta2 spec/views/catalog/_search_header.erb_spec.rb