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.25.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.24.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.23.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.22.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.21.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.20.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.19.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.19.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.19.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.18.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.17.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.16.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.15.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.14.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.14.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.13.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.12.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.11.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.11.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.11.0 spec/views/catalog/_document_list.html.erb_spec.rb