spec/models/spotlight/reindex_progress_spec.rb in blacklight-spotlight-0.22.0 vs spec/models/spotlight/reindex_progress_spec.rb in blacklight-spotlight-0.23.0

- old
+ new

@@ -79,9 +79,17 @@ end it 'is included in the json as a localized string' do expect(json['started_at']).to eq I18n.l(start_time, format: :short) end + + context 'with unqueued resources' do + subject { described_class.new(Spotlight::Resource.where(id: new_resource.id)) } + + it 'returns the indexed_at attribute of the first resource' do + expect(subject.started_at).to be_nil + end + end end describe '#updated_at' do let(:resources) { [first_resource, last_resource] }