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

pulibrary / pdc_discovery / 5af13607-7741-41ac-b110-c94c8a3ee0f0

pending completion
5af13607-7741-41ac-b110-c94c8a3ee0f0

Pull #441

circleci

hectorcorrea
Better error handling
Pull Request #441: Indexing to a new collection

99 of 99 new or added lines in 3 files covered. (100.0%)

1816 of 2220 relevant lines covered (81.8%)

95.45 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