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.28.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.27.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.27.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.26.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.26.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.25.3 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.25.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.25.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.25.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.24.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.23.0.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.23.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.22.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.22.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.22.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.21.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.21.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.21.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.20.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.20.0 spec/views/catalog/_document_list.html.erb_spec.rb