Sha256: 60c9629c9d1a8cb9df43205e18dc531bb88d5db24537cdc3777453d7a9fdb480
Contents?: true
Size: 438 Bytes
Versions: 3
Compression:
Stored size: 438 Bytes
Contents
require 'spec_helper' RSpec.describe NewspaperIssueIndexer do let(:issue) do NewspaperIssue.new( id: 'foo1234', title: ['Whatever'] ) end let(:indexer) { described_class.new(issue) } describe '#generate_solr_document' do subject { indexer.generate_solr_document } it 'adds the default edition field to the Solr document' do expect(subject['edition_number_tesim']).to eq('1') end end end
Version data entries
3 entries across 3 versions & 1 rubygems