Sha256: 085d3c8b954462d3855715860d422f89fd0bffd9963f8bb9b35f735484356722
Contents?: true
Size: 700 Bytes
Versions: 7
Compression:
Stored size: 700 Bytes
Contents
# frozen_string_literal: true RSpec.describe Blacklight::FieldRetriever, :api do let(:service) { described_class.new(document, blacklight_field_config) } let(:blacklight_field_config) { Blacklight::Configuration::Field.new(field: 'author_field', highlight: true) } let(:document) { SolrDocument.new({ 'id' => 'doc1', 'title_field' => 'doc1 title', 'author_field' => 'author_someone' }, 'highlighting' => { 'doc1' => { 'title_tsimext' => ['doc <em>1</em>'] } }) } let(:view_context) { {} } context "highlighting" do describe '#fetch' do it "retrieves an author even if it's not highlighted" do expect(service.fetch).to eq(['author_someone']) end end end end
Version data entries
7 entries across 7 versions & 2 rubygems