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

pulibrary / pdc_discovery / 5e867592-a902-4c05-97f1-a03662fb2c14

pending completion
5e867592-a902-4c05-97f1-a03662fb2c14

Pull #441

circleci

hectorcorrea
Rubocop nit picking
Pull Request #441: Indexing to a new collection

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

1791 of 2219 relevant lines covered (80.71%)

8.27 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