• 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

63.16
/spec/system/globus_item_metadata_spec.rb
1
# frozen_string_literal: true
2

3
describe 'Item page with Globus download integration', type: :system, js: true do
1✔
4
  let(:globus_fixtures) { File.read(File.join(fixture_path, 'globus_items.xml')) }
4✔
5
  let(:indexer) do
1✔
6
    DspaceIndexer.new(globus_fixtures)
3✔
7
  end
8

9
  before do
1✔
10
    Blacklight.default_index.connection.delete_by_query("*:*")
3✔
11
    Blacklight.default_index.connection.commit
3✔
12
    indexer.index
3✔
13
  end
14

15
  it "displays the Globus download button when the integration is present" do
1✔
16
    visit '/catalog/88163'
×
17
    expect(page).to have_content "Download from Globus"
×
18
  end
19

20
  it "does not display the Globus download button when the integration is not present" do
1✔
21
    visit '/catalog/6517'
×
22
    expect(page).not_to have_content "Download from Globus"
×
23
  end
24

25
  context "when there are no files in DataSpace" do
1✔
26
    it "displays the Globus button but not the file listing" do
1✔
27
      visit '/catalog/101010'
×
28
      expect(page).to have_content "Download from Globus"
×
29
      expect(page).not_to have_content "Showing 0 to 0 of 0 entries"
×
30
    end
31
  end
32
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