Sha256: 4f161ad5b87ee938adc8bde7c1aa4739e4886d7a1af8273b553cdaf3b2043d6f
Contents?: true
Size: 353 Bytes
Versions: 46
Compression:
Stored size: 353 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.json", format: :json hash = JSON.parse(rendered) expect(hash).to eq('response' => { 'facets' => { 'items' => [{ 'value' => 'Book' }] } }) end end
Version data entries
46 entries across 46 versions & 1 rubygems