Sha256: b9e70da331a66271e3468f46b511f5aa5ba89de6861a592976753962dd6f2abf
Contents?: true
Size: 705 Bytes
Versions: 55
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true RSpec.describe Blacklight::Configuration::FacetField do describe 'link_to_search' do subject { described_class.new(link_to_search: true) } it 'is deprecated' do expect(Deprecation).to receive(:warn) expect(subject.normalize!) expect(subject.link_to_facet).to eq true end end describe '#normalize!' do it 'preserves existing properties' do expected = double subject.presenter = expected subject.normalize! expect(subject.presenter).to eq expected end it 'adds a default presenter' do subject.normalize! expect(subject.presenter).to eq Blacklight::FacetFieldPresenter end end end
Version data entries
55 entries across 55 versions & 2 rubygems