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.23.0.1 | spec/views/catalog/facet.json.jbuilder_spec.rb |
blacklight-7.23.0 | spec/views/catalog/facet.json.jbuilder_spec.rb |