Sha256: 9484e87aa3531d7f32be409416733deb387fe4dd71d0b2651b8168cc21b431cb
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
RSpec.describe Blacklight::Configuration::Field do subject { described_class.new(key: key, label: label) } let(:key) { 'some_key' } let(:label) { 'some label' } describe '#display_label' do it "looks up the label to display for the given document and field" do allow(I18n).to receive(:t).with(:"blacklight.search.fields.my_context.some_key", default: [:"blacklight.search.fields.some_key", label, subject.default_label]).and_return('x') expect(subject.display_label('my_context')).to eq 'x' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-7.0.0.rc1 | spec/lib/blacklight/configuration/field_spec.rb |