Sha256: 15990ccc71b4a0943d341e6ddc47f093e28253ac6f267e31e62d410832969470

Contents?: true

Size: 351 Bytes

Versions: 43

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "catalog/_document_list", type: :view do
  before do
    allow(view).to receive_messages(document_index_view_type: "some-view", documents: [], blacklight_config: nil)
  end

  it "includes a class for the current view" do
    render
    expect(rendered).to have_selector(".documents-some-view")
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
blacklight-7.40.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.39.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.38.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.37.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.36.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.36.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.36.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.35.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.34.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.33.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-8.0.0.beta4 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-8.0.0.beta3 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-8.0.0.beta2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-8.0.0.beta1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.33.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.32.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.31.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.30.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.29.0 spec/views/catalog/_document_list.html.erb_spec.rb