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.33.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta4 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta3 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta2 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.0.0.beta1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.33.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.32.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.31.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.30.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.29.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.28.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.27.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.27.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.26.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.26.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.25.3 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.25.2 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.25.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.25.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-7.24.0 spec/views/catalog/facet.json.jbuilder_spec.rb