Sha256: d47c32b7d5328b50a94ff94b32f675a9bd2c5a8f455688abb84b5f1d0ab62085
Contents?: true
Size: 706 Bytes
Versions: 8
Compression:
Stored size: 706 Bytes
Contents
describe AdvancedHelper do describe '#advanced_search_facet_partial_name' do let(:field) { double(name: "field_name") } it 'should return the configured partial name if present' do expect(helper).to receive(:facet_configuration_for_field).with(field.name).and_return(double(partial: 'partial-name')) expect(helper.advanced_search_facet_partial_name(field)).to eq "partial-name" end it 'should fallback on "catalog/facet_limit" in the absence of a configured partial' do expect(helper).to receive(:facet_configuration_for_field).with(field.name).and_return(nil) expect(helper.advanced_search_facet_partial_name(field)).to eq "catalog/facet_limit" end end end
Version data entries
8 entries across 8 versions & 1 rubygems