Sha256: 1422c4ba1e3b4fa79b466d2b8fbea714266537ed231bbffab3712c11d708c918

Contents?: true

Size: 320 Bytes

Versions: 36

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

describe "catalog/_document_list", type: :view do
  before do
    allow(view).to receive_messages(document_index_view_type: "some-view", documents: [])
  end
  it "includes a class for the current view" do
    render
    expect(rendered).to have_selector(".documents-some-view")
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
blacklight-6.10.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.10.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.9.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.8.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.7.3 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.7.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.7.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.7.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.6.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.6.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.6.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.5.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.4.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.4.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.4.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.3.3 spec/views/catalog/_document_list.html.erb_spec.rb