Sha256: 912224373aa425cea804390045fc9192fa2dfe17c1f1a6a9c6497aa0a2ad5ab9

Contents?: true

Size: 327 Bytes

Versions: 35

Compression:

Stored size: 327 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: [])
  end

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
blacklight-7.18.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.18.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.17.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.17.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.17.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.16.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.15.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.15.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.15.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.14.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.14.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.13.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.13.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.13.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.12.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.12.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.11.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.10.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.9.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-7.8.1 spec/views/catalog/_document_list.html.erb_spec.rb