• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_discovery / 3823446b-c57e-4abf-8330-d3cff9d77076

pending completion
3823446b-c57e-4abf-8330-d3cff9d77076

Pull #382

circleci

Hector Correa
When importing dataspace records, skip those that have matching records already imported from PDC Describe
Pull Request #382: Give priority to PDC Describe records when indexing records

5 of 5 new or added lines in 1 file covered. (100.0%)

1714 of 1932 relevant lines covered (88.72%)

102.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.29
/spec/system/default_search_spec.rb
1
# frozen_string_literal: true
2
require 'spec_helper'
1✔
3

4
describe "Default search", type: :system do
1✔
5
  context "indexing all text" do
1✔
6
    before do
1✔
7
      solr_delete_all!
1✔
8
      xml = file_fixture("single_item.xml").read
1✔
9
      indexer = DspaceIndexer.new(xml)
1✔
10
      indexer.index
1✔
11
      Blacklight.default_index.connection.commit
×
12
    end
13

14
    it "finds value only indexed in catch all field." do
1✔
15
      num_docs = solr_num_documents({ q: 'Stotler_PoP.zip' })
×
16
      expect(num_docs).to eq 1
×
17

18
      num_docs = solr_num_documents({ q: 'not-existing-file.txt' })
×
19
      expect(num_docs).to eq 0
×
20
    end
21
  end
22
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc