Sha256: 811a3930f9376e8900caa0160b25b34871edc4adeea630205ca12f19a58b9bb8
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
require 'spec_helper' describe CurationConcerns::CollectionIndexer do let(:indexer) { described_class.new(collection) } let(:collection) { build(:collection) } before { allow(collection).to receive(:bytes).and_return(1000) } describe "#generate_solr_document" do subject { indexer.generate_solr_document } it "has generic type" do expect(subject.fetch('generic_type_sim')).to eq ["Collection"] end it "has bytes" do expect(subject.fetch('bytes_is')).to eq(1000) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-0.4.0 | spec/indexers/collection_indexer_spec.rb |