Sha256: 7e9f26a383d2cc55b17404fbe6f646c361b4c4a41bf06f77c6d472cb1d0e53a5

Contents?: true

Size: 384 Bytes

Versions: 69

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "catalog/_facets" do
  context "with facet groups" do
    before do
      stub_template('catalog/_facet_group.html.erb' => 'text')
      allow(view).to receive_messages(facet_group_names: [nil, nil])
      render
    end

    it "Calls facet_group for each name" do
      expect(rendered).to match(/^  text\n  text\n$/)
    end
  end
end

Version data entries

69 entries across 69 versions & 2 rubygems

Version Path
blacklight-7.40.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.39.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.38.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.37.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.36.2 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.36.1 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.36.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.35.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.34.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.33.1 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.33.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.32.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.31.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.30.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.29.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.28.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.27.1 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.27.0 spec/views/catalog/_facets.html.erb_spec.rb
blacklight-7.26.1 spec/views/catalog/_facets.html.erb_spec.rb