Sha256: 57f363ae6987b4577b9128c75883d3e26db0ec58b2d44a908d3b54559cf9e02d

Contents?: true

Size: 351 Bytes

Versions: 42

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "catalog/facet.json", api: true do
  it "renders facet json" do
    assign :pagination, items: [{ value: 'Book' }]
    render template: "catalog/facet", formats: [:json]
    hash = JSON.parse(rendered)
    expect(hash).to eq('response' => { 'facets' => { 'items' => [{ 'value' => 'Book' }] } })
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
blacklight-7.40.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.39.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.38.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.2.2 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.2.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.2.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.37.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.36.2 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.36.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.36.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.35.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.1.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.34.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta8 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta7 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta6 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta5 spec/views/catalog/facet.json.jbuilder_spec.rb