Sha256: f6b4b5143b6b9292b45b6686218c6511420452389000945b09a58958f392b290

Contents?: true

Size: 322 Bytes

Versions: 27

Compression:

Stored size: 322 Bytes

Contents

require 'spec_helper'

describe "catalog/_document_list", type: :view do  

  before do
    allow(view).to receive_messages(document_index_view_type: "some-view", documents: [])
  end

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
blacklight-5.19.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.19.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.19.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.18.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.17.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.0.0.pre5 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.17.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.17.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.0.0.pre4 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.16.4 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.0.0.pre3 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.16.3 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.16.2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.16.1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.0.0.pre2 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-6.0.0.pre1 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.16.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.15.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.14.0 spec/views/catalog/_document_list.html.erb_spec.rb
blacklight-5.13.1 spec/views/catalog/_document_list.html.erb_spec.rb