Sha256: 1977e80b99692e394495ce04b951e263a010423be075bd0c9d3694e2c00526c3

Contents?: true

Size: 346 Bytes

Versions: 9

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "catalog/facet.json", :api 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

9 entries across 9 versions & 2 rubygems

Version Path
blacklight-8.8.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.7.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.6.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.6.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.5.1 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.5.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.4.0 spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/spec/views/catalog/facet.json.jbuilder_spec.rb
blacklight-8.3.0 spec/views/catalog/facet.json.jbuilder_spec.rb