Sha256: b3fc6825a396418b73b2603ee9c6466e0c27a825b4f870e0c1d0fae8cb373195
Contents?: true
Size: 525 Bytes
Versions: 8
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper' RSpec.describe Sufia::WorkIndexer do let(:indexer) { described_class.new(work) } describe "#generate_solr_document" do let(:work) { create(:generic_work, admin_set: admin_set) } let(:admin_set) { create(:admin_set, title: ['Title One']) } subject(:document) { indexer.generate_solr_document } it "indexes the correct fields" do expect(document.fetch('admin_set_sim')).to eq ["Title One"] expect(document.fetch('admin_set_tesim')).to eq ["Title One"] end end end
Version data entries
8 entries across 8 versions & 1 rubygems