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