Sha256: 4702eef0dd3bfa3a451a01fa266ad71bb08047bc2dcc2658f6743db4090d21ca

Contents?: true

Size: 531 Bytes

Versions: 36

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

# spec for sidebar partial in catalog show view

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 "_constraints.html.erb" => "constraints"
    stub_template "_sort_and_per_page.html.erb" => "sort_and_per_page"
    render
    expect(rendered).to match /did_you_mean/
    expect(rendered).to match /constraints/
    expect(rendered).to match /sort_and_per_page/
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
blacklight-6.25.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.24.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.23.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.22.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.21.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.20.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.19.2 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.19.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.19.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.18.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.17.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.16.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.15.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.14.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.14.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.13.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.12.0 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.11.2 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.11.1 spec/views/catalog/_search_header.erb_spec.rb
blacklight-6.11.0 spec/views/catalog/_search_header.erb_spec.rb