Sha256: 81ff468604d57e406cce7c8a506eeebea85626f7771e1e28d7eb88dae71930ce
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
require 'spec_helper' RSpec.describe Blacklight::HierarchyHelper do describe '#render_hierarchy' do it 'should remove the _suffix from the field name' do expect(Deprecation).to receive(:warn) field = OpenStruct.new(field: 'the_field_name_facet') expect(helper).to receive(:facet_tree).with('the_field_name').and_return({}) helper.render_hierarchy(field) end end describe '#facet_toggle_button' do subject { helper.facet_toggle_button(field_name, described_by) } let(:field_name) { 'exploded_tag_ssim' } let(:described_by) { 'unique-string' } it { is_expected.to be_html_safe } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-hierarchy-4.3.0 | spec/helpers/hierarchy_helper_spec.rb |
blacklight-hierarchy-4.2.1 | spec/helpers/hierarchy_helper_spec.rb |